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
  • Makefile.modpost
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    modpost: dump missing namespaces into a single modules.nsdeps file · bbc55bde
    Masahiro Yamada authored Oct 29, 2019
    The modpost, with the -d option given, generates per-module .ns_deps
    files.
    
    Kbuild generates per-module .mod files to carry module information.
    This is convenient because Make handles multiple jobs in parallel
    when the -j option is given.
    
    On the other hand, the modpost always runs as a single thread.
    I do not see a strong reason to produce separate .ns_deps files.
    
    This commit changes the modpost to generate just one file,
    modules.nsdeps, each line of which has the following format:
    
      <module_name>: <list of missing namespaces>
    
    Please note it contains *missing* namespaces instead of required ones.
    So, modules.nsdeps is empty if the namespace dependency is all good.
    
    This will work more efficiently because spatch will no longer process
    already imported namespaces. I removed the '(if needed)' from the
    nsdeps log since spatch is invoked only when needed.
    
    This also solves the stale .ns_deps problem reported by Jessica Yu:
    
      https://lkml.org/lkml/2019/10/28/467
    
    
    
    Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
    Tested-by: default avatarJessica Yu <jeyu@kernel.org>
    Acked-by: default avatarJessica Yu <jeyu@kernel.org>
    Reviewed-by: default avatarMatthias Maennich <maennich@google.com>
    Tested-by: default avatarMatthias Maennich <maennich@google.com>
    bbc55bde
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7