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
  • tools
  • testing
  • selftests
  • sync
  • sync_test.c
Find file BlameHistoryPermalink
  • Nathan Chancellor's avatar
    selftests: sync: ksft_exit_pass() does not return · 102690be
    Nathan Chancellor authored Apr 24, 2024
    After commit f7d5bcd3
    
     ("selftests: kselftest: Mark functions that
    unconditionally call exit() as __noreturn"), ksft_exit_...() functions
    are marked as __noreturn, which means the return type should not be
    'int' but 'void' because they are not returning anything (and never were
    since exit() has always been called).
    
    To facilitate updating the return type of these functions, remove
    'return' before the call to ksft_exit_pass(), as __noreturn prevents the
    compiler from warning that a caller of ksft_exit_pass() does not return
    a value because the program will terminate upon calling these functions
    (which is what the comment alluded to as well).
    
    Reviewed-by: default avatarMuhammad Usama Anjum <usama.anjum@collabora.com>
    Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
    Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
    102690be
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7