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: fix array element capture in pointer-to-func parsing · 336ced2d
    Aditya Srivastava authored Feb 17, 2021
    
    
    Currently, kernel-doc causes an unexpected error when array element (i.e.,
    "type (*foo[bar])(args)") is present as pointer parameter in
    pointer-to-function parsing.
    
    For e.g., running kernel-doc -none on kernel/gcov/gcc_4_7.c causes this
    error:
    "Use of uninitialized value $param in regexp compilation at ...", in
    combination with:
    "warning: Function parameter or member '' not described in 'gcov_info'"
    
    Here, the parameter parsing does not take into account the presence of
    array element (i.e. square brackets) in $param.
    
    Provide a simple fix by adding square brackets in the regex, responsible
    for capturing $param.
    
    A quick evaluation, by running 'kernel-doc -none' on entire kernel-tree,
    reveals that no additional warning or error has been added or removed by
    the fix.
    
    Suggested-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
    Signed-off-by: default avatarAditya Srivastava <yashsri421@gmail.com>
    Tested-by: default avatarLukas Bulwahn <lukas.bulwahn@gmail.com>
    Link: https://lore.kernel.org/r/20210217145625.14006-1-yashsri421@gmail.com
    
    
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    336ced2d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7