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
    kernel-doc: handle a void function without producing a warning · afa751e8
    Randy Dunlap authored Dec 25, 2023
    Currently a void function can produce a warning:
      main.c:469: warning: contents before sections
    
    This one is from arch/x86/kernel/cpu/sgx/main.c (which is not included
    in any produced kernel documentation output).
    
    Handle this by setting $in_doc_sect to 1 whenever any recognized
    document section name is processed.
    
    Fixes: f624adef
    
     ("kernel-doc: limit the "section header:" detection to a select few")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Cc: Jani Nikula <jani.nikula@intel.com>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: linux-doc@vger.kernel.org
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    Link: https://lore.kernel.org/r/20231226065219.319-1-rdunlap@infradead.org
    afa751e8
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7