lkdtm: silence warnings about function declarations
authorKees Cook <keescook@chromium.org>
Fri, 15 Jul 2016 23:04:39 +0000 (16:04 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 15 Jul 2016 23:14:45 +0000 (16:14 -0700)
commit6d2e91a662256fd88ec0505567a59d21094ed415
tree97c6a4c79a66ffa019f1c648e81fcef687e97fb1
parent2b271cb7203dd4dcea991119367df2ed7e66f3c7
lkdtm: silence warnings about function declarations

When building under W=1, the lack of lkdtm.h in lkdtm_usercopy.c and
lkdtm_rodata.c was discovered. This fixes the issue and consolidates
the common header and the pr_fmt macro for simplicity and regularity
across each test source file.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm.h
drivers/misc/lkdtm_bugs.c
drivers/misc/lkdtm_core.c
drivers/misc/lkdtm_heap.c
drivers/misc/lkdtm_perms.c
drivers/misc/lkdtm_rodata.c
drivers/misc/lkdtm_usercopy.c