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
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Guenter Roeck's avatar
    checkpatch: do not complain about positive return values starting with EPOLL · 46b85bf9
    Guenter Roeck authored Jun 30, 2021
    checkpatch complains about positive return values of poll functions.
    Example:
    
    WARNING: return of an errno should typically be negative (ie: return -EPOLLIN)
    +		return EPOLLIN;
    
    Poll functions return positive values.  The defines for the return values
    of poll functions all start with EPOLL, resulting in a number of false
    positives.  An often used workaround is to assign poll function return
    values to variables and returning that variable, but that is a less than
    perfect solution.
    
    There is no error definition which starts with EPOLL, so it is safe to
    omit the warning for return values starting with EPOLL.
    
    Link: https://lkml.kernel.org/r/20210622004334.638680-1-linux@roeck-us.net
    
    
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Acked-by: default avatarJoe Perches <joe@perches.com>
    Cc: Ricardo Ribalda <ribalda@chromium.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    46b85bf9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7