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
You need to sign in or sign up before continuing.
  • linux
  • kernel
  • trace
  • fgraph.c
Find file BlameHistoryPermalink
  • Steven Rostedt (Google)'s avatar
    function_graph: Make fgraph_update_pid_func() a stub for !DYNAMIC_FTRACE · 4267fda4
    Steven Rostedt (Google) authored Jun 07, 2024
    When CONFIG_DYNAMIC_FTRACE is not set, the function
    fgraph_update_pid_func() doesn't do anything. Currently, most of its logic
    is within a "#ifdef CONFIG_DYNAMIC_FTRACE" block, but its variables were
    declared outside that, and when DYNAMIC_FTRACE is not set, it produces
    unused variable warnings.
    
    Instead, just place it (and the helper function fgraph_pid_func()) within
    the #ifdef block and have the header file use a empty stub function for
    when DYNAMIC_FTRACE is not defined.
    
    Link: https://lore.kernel.org/linux-trace-kernel/20240607094833.6a787d73@rorschach.local.home
    
    
    
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Closes: https://lore.kernel.org/oe-kbuild-all/202406071806.BRjaC5FF-lkp@intel.com/
    
    
    Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    4267fda4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7