1. 16 7月, 2016 2 次提交
    • K
      lkdtm: silence warnings about function declarations · 6d2e91a6
      Kees Cook 提交于
      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: NKees Cook <keescook@chromium.org>
      6d2e91a6
    • A
      lkdtm: hide unused functions · 2b271cb7
      Arnd Bergmann 提交于
      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: NArnd Bergmann <arnd@arndb.de>
      Fixes: c479e3fd ("lkdtm: use struct arrays instead of enums")
      [kees: moved some code around to better consolidate the #ifdefs]
      Signed-off-by: NKees Cook <keescook@chromium.org>
      2b271cb7
  2. 15 7月, 2016 1 次提交
  3. 14 7月, 2016 7 次提交
  4. 08 7月, 2016 12 次提交
  5. 02 7月, 2016 2 次提交
  6. 01 7月, 2016 4 次提交
  7. 30 6月, 2016 1 次提交
    • A
      extcon: link devres into core module · af61f961
      Arnd Bergmann 提交于
      Splitting the resource-managed functions into a separate module
      means that the extcon core now fails to build because the internal
      "extcon_dev_allocate" symbol is not exported:
      
      ERROR: extcon_dev_allocate [drivers/extcon/devres.ko] undefined!
      
      My guess is that the intention was not to have two separate
      modules (which could be fixed by adding an export, plus the
      normal MODULE_AUTHOR/MODULE_LICENSE/... fields), but have two
      source files in the same module.
      
      This fixes the Makefile accordingly, making the name of the
      module extcon_core.ko, which is created from building both
      extcon.c and devres.c.
      
      Fixes: b225d00f ("extcon: Split out the resource-managed functions from extcon core")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
      af61f961
  8. 29 6月, 2016 1 次提交
  9. 27 6月, 2016 3 次提交
  10. 25 6月, 2016 7 次提交
新手
引导
客服 返回
顶部