diff options
author | Kees Cook <keescook@chromium.org> | 2016-07-15 19:04:39 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2016-07-15 19:14:45 -0400 |
commit | 6d2e91a662256fd88ec0505567a59d21094ed415 (patch) | |
tree | 97c6a4c79a66ffa019f1c648e81fcef687e97fb1 /drivers/misc/lkdtm.h | |
parent | 2b271cb7203dd4dcea991119367df2ed7e66f3c7 (diff) |
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>
Diffstat (limited to 'drivers/misc/lkdtm.h')
-rw-r--r-- | drivers/misc/lkdtm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/misc/lkdtm.h b/drivers/misc/lkdtm.h index d70a41741bb3..fdf954c2107f 100644 --- a/drivers/misc/lkdtm.h +++ b/drivers/misc/lkdtm.h | |||
@@ -1,6 +1,10 @@ | |||
1 | #ifndef __LKDTM_H | 1 | #ifndef __LKDTM_H |
2 | #define __LKDTM_H | 2 | #define __LKDTM_H |
3 | 3 | ||
4 | #define pr_fmt(fmt) "lkdtm: " fmt | ||
5 | |||
6 | #include <linux/kernel.h> | ||
7 | |||
4 | /* lkdtm_bugs.c */ | 8 | /* lkdtm_bugs.c */ |
5 | void __init lkdtm_bugs_init(int *recur_param); | 9 | void __init lkdtm_bugs_init(int *recur_param); |
6 | void lkdtm_PANIC(void); | 10 | void lkdtm_PANIC(void); |
@@ -53,5 +57,4 @@ void lkdtm_USERCOPY_STACK_FRAME_FROM(void); | |||
53 | void lkdtm_USERCOPY_STACK_BEYOND(void); | 57 | void lkdtm_USERCOPY_STACK_BEYOND(void); |
54 | void lkdtm_USERCOPY_KERNEL(void); | 58 | void lkdtm_USERCOPY_KERNEL(void); |
55 | 59 | ||
56 | |||
57 | #endif | 60 | #endif |