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
  • Akira Yokosawa's avatar
    docs: scripts/kernel-doc: Detect absence of FILE arg · e334f873
    Akira Yokosawa authored Feb 24, 2022
    
    
    Currently, when there is no FILE argument following a switch such
    as -man, -rst, or -none, kernel-doc exits with a warning from perl
    (long msg folded):
    
        Use of uninitialized value $ARGV[0] in pattern match (m//)
        at ./scripts/kernel-doc line 438.
    
    , which is unhelpful.
    
    Improve the behavior by adding a check at the bottom of parsing
    loop.
    If the argument is absent, display help text and exit with
    the code of 1 (via usage()).
    
    Signed-off-by: default avatarAkira Yokosawa <akiyks@gmail.com>
    Cc: Randy Dunlap <rdunlap@infradead.org>
    Link: https://lore.kernel.org/r/7b136049-a3ba-0eb5-8717-364d773ff914@gmail.com
    
    
    [jc: reworked to fix conflict with pod patches]
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    e334f873
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7