Skip to content

Commit 81dbd89

Browse files
rddunlapgregkh
authored andcommitted
NIOS2: irqflags: rename a redefined register name
[ Upstream commit 4cce60f ] Both arch/nios2/ and drivers/mmc/host/tmio_mmc.c define a macro with the name "CTL_STATUS". Change the one in arch/nios2/ to be "CTL_FSTATUS" (flags status) to eliminate the build warning. In file included from ../drivers/mmc/host/tmio_mmc.c:22: drivers/mmc/host/tmio_mmc.h:31: warning: "CTL_STATUS" redefined 31 | #define CTL_STATUS 0x1c arch/nios2/include/asm/registers.h:14: note: this is the location of the previous definition 14 | #define CTL_STATUS 0 Fixes: b31ebd8 ("nios2: Nios2 registers") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6edf99b commit 81dbd89

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/nios2/include/asm/irqflags.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
static inline unsigned long arch_local_save_flags(void)
1111
{
12-
return RDCTL(CTL_STATUS);
12+
return RDCTL(CTL_FSTATUS);
1313
}
1414

1515
/*
@@ -18,7 +18,7 @@ static inline unsigned long arch_local_save_flags(void)
1818
*/
1919
static inline void arch_local_irq_restore(unsigned long flags)
2020
{
21-
WRCTL(CTL_STATUS, flags);
21+
WRCTL(CTL_FSTATUS, flags);
2222
}
2323

2424
static inline void arch_local_irq_disable(void)

‎arch/nios2/include/asm/registers.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#endif
1212

1313
/* control register numbers */
14-
#define CTL_STATUS 0
14+
#define CTL_FSTATUS 0
1515
#define CTL_ESTATUS 1
1616
#define CTL_BSTATUS 2
1717
#define CTL_IENABLE 3

0 commit comments

Comments
 (0)