]> Git Repo - linux.git/commitdiff
ARM: 7892/1: Fix warning for V7M builds
authorOlof Johansson <[email protected]>
Mon, 18 Nov 2013 05:01:38 +0000 (06:01 +0100)
committerRussell King <[email protected]>
Tue, 19 Nov 2013 00:41:03 +0000 (00:41 +0000)
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 <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/kernel/traps.c

index 6125f259b7b5359072b0cd7a07e122fcd2bda4bd..dbf0923e8d76bda9392b902e0c8e500025d70402 100644 (file)
@@ -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
This page took 0.055793 seconds and 4 git commands to generate.