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
  • Peter Maydell's avatar
    scripts/kernel-doc: Add missing close-paren in c:function directives · e8f4ba83
    Peter Maydell authored Apr 14, 2020
    
    
    When kernel-doc generates a 'c:function' directive for a function
    one of whose arguments is a function pointer, it fails to print
    the close-paren after the argument list of the function pointer
    argument. For instance:
    
     long work_on_cpu(int cpu, long (*fn) (void *, void * arg)
    
    in driver-api/basics.html is missing a ')' separating the
    "void *" of the 'fn' arguments from the ", void * arg" which
    is an argument to work_on_cpu().
    
    Add the missing close-paren, so that we render the prototype
    correctly:
    
     long work_on_cpu(int cpu, long (*fn)(void *), void * arg)
    
    (Note that Sphinx stops rendering a space between the '(fn*)' and the
    '(void *)' once it gets something that's syntactically valid.)
    
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Link: https://lore.kernel.org/r/20200414143743.32677-1-peter.maydell@linaro.org
    
    
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    e8f4ba83
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7