summaryrefslogtreecommitdiffstats
path: root/drivers/misc/lkdtm_rodata.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-07-16 01:04:39 +0200
committerKees Cook <keescook@chromium.org>2016-07-16 01:14:45 +0200
commit6d2e91a662256fd88ec0505567a59d21094ed415 (patch)
tree97c6a4c79a66ffa019f1c648e81fcef687e97fb1 /drivers/misc/lkdtm_rodata.c
parentlkdtm: hide unused functions (diff)
downloadlinux-6d2e91a662256fd88ec0505567a59d21094ed415.tar.xz
linux-6d2e91a662256fd88ec0505567a59d21094ed415.zip
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_rodata.c')
-rw-r--r--drivers/misc/lkdtm_rodata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/lkdtm_rodata.c b/drivers/misc/lkdtm_rodata.c
index 4d0d851f02b9..166b1db3969f 100644
--- a/drivers/misc/lkdtm_rodata.c
+++ b/drivers/misc/lkdtm_rodata.c
@@ -2,7 +2,7 @@
* This includes functions that are meant to live entirely in .rodata
* (via objcopy tricks), to validate the non-executability of .rodata.
*/
-#include <linux/kernel.h>
+#include "lkdtm.h"
void lkdtm_rodata_do_nothing(void)
{