ARM: 7892/1: Fix warning for V7M builds
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 22 17:59:05 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5761704a41c63ebe756295a13d2e236280dd8a86
Commit: 5761704a41c63ebe756295a13d2e236280dd8a86
Parent: 9170217510cd280c704966738e7c1660c8fa5cbd
Author: Olof Johansson <olof at lixom.net>
AuthorDate: Mon Nov 18 06:01:38 2013 +0100
Committer: Russell King <rmk+kernel at arm.linux.org.uk>
CommitDate: Tue Nov 19 00:41:03 2013 +0000
ARM: 7892/1: Fix warning for V7M builds
Fixes a harmless warning when building for V7M (!MMU):
arch/arm/kernel/traps.c:859:123: warning: 'kuser_init' defined but not used [-Wunused-function]
By making the stub static inline instead of just static.
Fixes: f6f91b0d9fd9 ('ARM: allow kuser helpers to be removed from the vector page')
Signed-off-by: Olof Johansson <olof at lixom.net>
Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
---
arch/arm/kernel/traps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 6125f25..dbf0923 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -856,7 +856,7 @@ static void __init kuser_init(void *vectors)
memcpy(vectors + 0xfe0, vectors + 0xfe8, 4);
}
#else
-static void __init kuser_init(void *vectors)
+static inline void __init kuser_init(void *vectors)
{
}
#endif
More information about the linux-mtd-cvs
mailing list