From: Colin Ian King Date: Tue, 10 Apr 2018 23:33:02 +0000 (-0700) Subject: lib/test_ubsan.c: make test_ubsan_misaligned_access() static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=317506009216f5103e185fe626d61361a899909d;p=openwrt%2Fstaging%2Fblogic.git 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/20180313103048.28513-1-colin.king@canonical.com Signed-off-by: Colin Ian King Cc: Jinbum Park Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Kees Cook Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;