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
  • Aditya Srivastava's avatar
    scripts: kernel-doc: add warning for comment not following kernel-doc syntax · 3e58e839
    Aditya Srivastava authored Mar 29, 2021
    
    
    Currently, kernel-doc start parsing the comment as a kernel-doc comment if
    it starts with '/**', but does not take into account if the content inside
    the comment too, adheres with the expected format.
    This results in unexpected and unclear warnings for the user.
    
    E.g., running scripts/kernel-doc -none mm/memcontrol.c emits:
    "mm/memcontrol.c:961: warning: expecting prototype for do not fallback to current(). Prototype was for get_mem_cgroup_from_current() instead"
    
    Here kernel-doc parses the corresponding comment as a kernel-doc comment
    and expects prototype for it in the next lines, and as a result causing
    this warning.
    
    Provide a clearer warning message to the users regarding the same, if the
    content inside the comment does not follow the kernel-doc expected format.
    
    Signed-off-by: default avatarAditya Srivastava <yashsri421@gmail.com>
    Link: https://lore.kernel.org/r/20210329092945.13152-1-yashsri421@gmail.com
    
    
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    3e58e839
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7