Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • lib
  • Kconfig.debug
Find file BlameHistoryPermalink
  • Li Hua's avatar
    test_kprobes: Fix implicit declaration error of test_kprobes · 63a4dc0a
    Li Hua authored Nov 21, 2022
    If KPROBES_SANITY_TEST and ARCH_CORRECT_STACKTRACE_ON_KRETPROBE is enabled, but
    STACKTRACE is not set. Build failed as below:
    
    lib/test_kprobes.c: In function ‘stacktrace_return_handler’:
    lib/test_kprobes.c:228:8: error: implicit declaration of function ‘stack_trace_save’; did you mean ‘stacktrace_driver’? [-Werror=implicit-function-declaration]
      ret = stack_trace_save(stack_buf, STACK_BUF_SIZE, 0);
            ^~~~~~~~~~~~~~~~
            stacktrace_driver
    cc1: all warnings being treated as errors
    scripts/Makefile.build:250: recipe for target 'lib/test_kprobes.o' failed
    make[2]: *** [lib/test_kprobes.o] Error 1
    
    To fix this error, Select STACKTRACE if ARCH_CORRECT_STACKTRACE_ON_KRETPROBE is enabled.
    
    Link: https://lore.kernel.org/all/20221121030620.63181-1-hucool.lihua@huawei.com/
    
    Fixes: 1f6d3a8f
    
     ("kprobes: Add a test case for stacktrace from kretprobe handler")
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarLi Hua <hucool.lihua@huawei.com>
    Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
    Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
    63a4dc0a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7