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
  • Markus Heiser's avatar
    kernel-doc parser mishandles declarations split into lines · 463a0fdc
    Markus Heiser authored Jun 16, 2017
    Reported by Johannes Berg [1].  Problem here: function
    process_proto_type() concatenates the striped lines of declaration
    without any whitespace. A one-liner of::
    
     struct something {
           struct foo
           bar;
           };
    
    has to be::
    
     struct something {struct foo bar;};
    
    Without the patching process_proto_type(), the result missed the space
    between 'foo' and 'bar'::
    
     struct something {struct foobar;};
    
    Bugfix of process_proto_type() brings next error when blank lines
    between enum declaration::
    
     warning: Enum value ' ' not described in enum 'foo'
    
    Problem here: dump_enum() does not strip leading whitespaces from
    the concatenated string (with the new additional space from
    process_proto_type).
    
    [1] https://www.mail-archive.com/linux-doc@vger.kernel.org/msg12410.html
    
    
    
    Signed-off-by: default avatarMarkus Heiser <markus.heiser@darmarit.de>
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    463a0fdc
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7