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
  • scripts
  • kernel-doc
Find file BlameHistoryPermalink
  • Randy Dunlap's avatar
    scripts/kernel-doc: drop "_noprof" on function prototypes · 51a7bf02
    Randy Dunlap authored Mar 25, 2024
    Memory profiling introduces macros as hooks for function-level allocation
    profiling[1].  Memory allocation functions that are profiled are named
    like xyz_alloc() for API access to the function.  xyz_alloc() then calls
    xyz_alloc_noprof() to do the allocation work.
    
    The kernel-doc comments for the memory allocation functions are introduced
    with the xyz_alloc() function names but the function implementations are
    the xyz_alloc_noprof() names.  This causes kernel-doc warnings for
    mismatched documentation and function prototype names.  By dropping the
    "_noprof" part of the function name, the kernel-doc function name matches
    the function prototype name, so the warnings are resolved.
    
    [1] https://lore.kernel.org/all/20240321163705.3067592-1-surenb@google.com/
    
    Link: https://lkml.kernel.org/r/20240326054149.2121-1-rdunlap@infradead.org
    
    
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Closes: https://lore.kernel.org/all/20240325123603.1bdd6588@canb.auug.org.au/
    
    
    Tested-by: default avatarSuren Baghdasaryan <surenb@google.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Kent Overstreet <kent.overstreet@linux.dev>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    51a7bf02
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7