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
  • lib
  • Makefile
Find file BlameHistoryPermalink
  • David Gow's avatar
    kunit: Fix 'hooks.o' build by recursing into kunit · 32ff6831
    David Gow authored Feb 25, 2023
    KUnit's 'hooks.o' file need to be built-in whenever KUnit is enabled
    (even if CONFIG_KUNIT=m).  We'd previously attemtped to do this by
    adding 'kunit/hooks.o' to obj-y in lib/Makefile, but this caused hooks.c
    to be rebuilt even when it was unchanged.
    
    Instead, always recurse into lib/kunit using obj-y when KUnit is
    enabled, and add the hooks there.
    
    Fixes: 7170b7ed
    
     ("kunit: Add "hooks" to call into KUnit when it's built as a module").
    Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Link: https://lore.kernel.org/linux-kselftest/CAHk-=wiEf7irTKwPJ0jTMOF3CS-13UXmF6Fns3wuWpOZ_wGyZQ@mail.gmail.com/
    
    
    Signed-off-by: default avatarDavid Gow <davidgow@google.com>
    Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    32ff6831
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7