diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-07-16 00:58:55 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2016-07-16 01:14:44 +0200 |
commit | 2b271cb7203dd4dcea991119367df2ed7e66f3c7 (patch) | |
tree | bd255c7ade6b2e55d186c665244d15d658ce3d1a /Documentation/pps | |
parent | Merge tag 'stm-for-greg-20160714' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-2b271cb7203dd4dcea991119367df2ed7e66f3c7.tar.xz 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 'Documentation/pps')
0 files changed, 0 insertions, 0 deletions