summaryrefslogtreecommitdiffstats
path: root/drivers/misc/lkdtm_rodata.c
diff options
context:
space:
mode:
authorArnd Bergmann2016-07-16 00:58:55 +0200
committerKees Cook2016-07-16 01:14:44 +0200
commit2b271cb7203dd4dcea991119367df2ed7e66f3c7 (patch)
treebd255c7ade6b2e55d186c665244d15d658ce3d1a /drivers/misc/lkdtm_rodata.c
parentMerge tag 'stm-for-greg-20160714' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-qcow2-linux-2b271cb7203dd4dcea991119367df2ed7e66f3c7.tar.gz
kernel-qcow2-linux-2b271cb7203dd4dcea991119367df2ed7e66f3c7.tar.xz
kernel-qcow2-linux-2b271cb7203dd4dcea991119367df2ed7e66f3c7.zip
lkdtm: hide unused functions
A conversion of the lkdtm core module added an "#ifdef CONFIG_KPROBES" check, but a number of functions then become unused: drivers/misc/lkdtm_core.c:340:16: error: 'lkdtm_debugfs_entry' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:122:12: error: 'jp_generic_ide_ioctl' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:114:12: error: 'jp_scsi_dispatch_cmd' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:106:12: error: 'jp_hrtimer_start' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:97:22: error: 'jp_shrink_inactive_list' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:89:13: error: 'jp_ll_rw_block' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:83:13: error: 'jp_tasklet_action' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:75:20: error: 'jp_handle_irq_event' defined but not used [-Werror=unused-function] drivers/misc/lkdtm_core.c:68:21: error: 'jp_do_irq' defined but not used [-Werror=unused-function] This adds the same #ifdef everywhere. There is probably a better way to do the same thing, but for now this avoids the new warnings. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: c479e3fd8870 ("lkdtm: use struct arrays instead of enums") [kees: moved some code around to better consolidate the #ifdefs] Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/lkdtm_rodata.c')
0 files changed, 0 insertions, 0 deletions