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
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • kernel-doc
Find file BlameHistoryPermalink
  • Aditya Srivastava's avatar
    scripts: kernel-doc: fix attribute capture in function parsing · 084aa001
    Aditya Srivastava authored Mar 06, 2021
    
    
    Currently, kernel-doc warns for function prototype parsing on the
    presence of attributes "__attribute_const__" and "__flatten" in the
    definition.
    
    There are 166 occurrences in ~70 files in the kernel tree for
    "__attribute_const__" and 5 occurrences in 4 files for "__flatten".
    
    Out of 166, there are 3 occurrences in three different files with
    "__attribute_const__" and a preceding kernel-doc; and, 1 occurrence in
    ./mm/percpu.c for "__flatten" with a preceding kernel-doc. All other
    occurrences have no preceding kernel-doc.
    
    Add support for  "__attribute_const__" and "__flatten" attributes.
    
    A quick evaluation by running 'kernel-doc -none' on 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>
    Link: https://lore.kernel.org/r/20210306113510.31023-1-yashsri421@gmail.com
    
    
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    084aa001
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7