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
  • gcc-plugins
  • randomize_layout_plugin.c
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    gcc-plugins: use KERNELVERSION for plugin version · d37aa2ef
    Masahiro Yamada authored May 24, 2022
    Commit 61f60bac ("gcc-plugins: Change all version strings match
    kernel") broke parallel builds.
    
    Instead of adding the dependency between GCC plugins and utsrelease.h,
    let's use KERNELVERSION, which does not require any build artifact.
    
    Another reason why I want to avoid utsrelease.h is because it depends
    on CONFIG_LOCALVERSION(_AUTO) and localversion* files.
    
    (include/generated/utsrelease.h depends on include/config/kernel.release,
    which is generated by scripts/setlocalversion)
    
    I want to keep host tools independent of the kernel configuration.
    
    There is no good reason to rebuild GCC plugins just because of
    CONFIG_LOCALVERSION being changed.
    
    We just want to associate the plugin versions with the kernel source
    version. KERNELVERSION should be enough for our purpose.
    
    Fixes: 61f60bac
    
     ("gcc-plugins: Change all version strings match kernel")
    Reported-by: default avatarkernel test robot <lkp@intel.com>
    Link: https://lore.kernel.org/linux-mm/202205230239.EZxeZ3Fv-lkp@intel.com
    
    
    Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    Link: https://lore.kernel.org/r/20220524135541.1453693-1-masahiroy@kernel.org
    d37aa2ef
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7