summaryrefslogtreecommitdiff
path: root/arch/nios2/include/asm/registers.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2021-10-04 00:56:06 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-27 09:32:39 +0200
commitb5216fdca0f7ac5aa7a99723e66d490fc0f786ef (patch)
tree2012ad4ef8b7b5fc0a2719ab170c372a0a6c5162 /arch/nios2/include/asm/registers.h
parent2beaba79a9d9fdcabdd41a38eb98d97a5fb901dc (diff)
NIOS2: irqflags: rename a redefined register name
[ Upstream commit 4cce60f15c04d69eff6ffc539ab09137dbe15070 ] 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: b31ebd8055ea ("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>
Diffstat (limited to 'arch/nios2/include/asm/registers.h')
-rw-r--r--arch/nios2/include/asm/registers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/include/asm/registers.h b/arch/nios2/include/asm/registers.h
index 615bce19b546..33824f2ad1ab 100644
--- a/arch/nios2/include/asm/registers.h
+++ b/arch/nios2/include/asm/registers.h
@@ -24,7 +24,7 @@
#endif
/* control register numbers */
-#define CTL_STATUS 0
+#define CTL_FSTATUS 0
#define CTL_ESTATUS 1
#define CTL_BSTATUS 2
#define CTL_IENABLE 3