diff options
author | Colin Ian King <[email protected]> | 2018-04-10 16:33:02 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-04-11 10:28:35 -0700 |
commit | 317506009216f5103e185fe626d61361a899909d (patch) | |
tree | 2f483b384433fd07efdd4604bf14108f96779287 | |
parent | 854686f4edf483db1e0d26d972bdb8fb65c8bfaa (diff) |
lib/test_ubsan.c: make test_ubsan_misaligned_access() static
test_ubsan_misaligned_access() is local to the source and does not need
to be in global scope, so make it static.
Cleans up sparse warning:
lib/test_ubsan.c:91:6: warning: symbol 'test_ubsan_misaligned_access' was not declared. Should it be static?
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Colin Ian King <[email protected]>
Cc: Jinbum Park <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Kees Cook <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | lib/test_ubsan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_ubsan.c b/lib/test_ubsan.c index 58dedff36b17..280f4979d00e 100644 --- a/lib/test_ubsan.c +++ b/lib/test_ubsan.c @@ -88,7 +88,7 @@ static void test_ubsan_null_ptr_deref(void) val = *ptr; } -void test_ubsan_misaligned_access(void) +static void test_ubsan_misaligned_access(void) { volatile char arr[5] __aligned(4) = {1, 2, 3, 4, 5}; volatile int *ptr, val = 6; |