Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(squash) checkpatch: fix extern warnings
Note: squash with ("livepatch/selftests: add klp-convert") Fix the following checkpatch warnings: WARNING: externs should be avoided in .c files torvalds#66: FILE: lib/livepatch/test_klp_convert1.c:13: +extern char driver_name[]; WARNING: externs should be avoided in .c files torvalds#67: FILE: lib/livepatch/test_klp_convert1.c:14: +extern char homonym_string[]; WARNING: externs should be avoided in .c files torvalds#68: FILE: lib/livepatch/test_klp_convert1.c:15: +extern const char *get_homonym_string(void); WARNING: externs should be avoided in .c files torvalds#69: FILE: lib/livepatch/test_klp_convert1.c:16: +extern const char *test_klp_get_driver_name(void); WARNING: externs should be avoided in .c files torvalds#191: FILE: lib/livepatch/test_klp_convert2.c:13: +extern char driver_name[]; WARNING: externs should be avoided in .c files torvalds#192: FILE: lib/livepatch/test_klp_convert2.c:14: +extern char homonym_string[]; WARNING: externs should be avoided in .c files torvalds#193: FILE: lib/livepatch/test_klp_convert2.c:15: +extern const char *get_homonym_string(void); WARNING: externs should be avoided in .c files torvalds#194: FILE: lib/livepatch/test_klp_convert2.c:16: +extern const char *test_klp_get_driver_name(void); WARNING: externs should be avoided in .c files torvalds#30: FILE: lib/livepatch/test_klp_convert1.c:18: +extern char klp_string_a[] __asm__("klp_string.12345"); WARNING: externs should be avoided in .c files torvalds#31: FILE: lib/livepatch/test_klp_convert1.c:19: +extern char klp_string_b[] __asm__("klp_string.67890"); Signed-off-by: Joe Lawrence <[email protected]>
- Loading branch information