projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
854686f
)
lib/test_ubsan.c: make test_ubsan_misaligned_access() static
author
Colin Ian King
<
[email protected]
>
Tue, 10 Apr 2018 23:33:02 +0000
(16:33 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Apr 2018 17:28:35 +0000
(10:28 -0700)
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]
>
lib/test_ubsan.c
patch
|
blob
|
history
diff --git
a/lib/test_ubsan.c
b/lib/test_ubsan.c
index 58dedff36b17ca802446f91f95837c1b5d76712e..280f4979d00eda2a3ec54769d6f32392cdc60ecc 100644
(file)
--- 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;