summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-11-18 06:01:38 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-11-19 01:41:03 +0100
commit5761704a41c63ebe756295a13d2e236280dd8a86 (patch)
tree0bcdff3507b32709ad6cfd22c54baec4c345a729 /arch
parentARM: 7888/1: seccomp: not compatible with ARM OABI (diff)
downloadlinux-5761704a41c63ebe756295a13d2e236280dd8a86.tar.xz
linux-5761704a41c63ebe756295a13d2e236280dd8a86.zip
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@lixom.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 6125f259b7b5..dbf0923e8d76 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