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
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • Makefile.extrawarn
Find file BlameHistoryPermalink
  • Masahiro Yamada's avatar
    kbuild: add -Wundef to KBUILD_CPPFLAGS for W=1 builds · 80b6093b
    Masahiro Yamada authored Dec 06, 2022
    The use of an undefined macro in an #if directive is warned, but only
    in *.c files. No warning from other files such as *.S, *.lds.S.
    
    Since -Wundef is a preprocessor-related warning, it should be added to
    KBUILD_CPPFLAGS instead of KBUILD_CFLAGS.
    
    My previous attempt [1] uncovered several issues. I could not finish
    fixing them all.
    
    This commit adds -Wundef to KBUILD_CPPFLAGS for W=1 builds in order to
    block new breakages. (The kbuild test robot tests with W=1)
    
    We can fix the warnings one by one. After fixing all of them, we can
    make it default in the top Makefile, and remove -Wundef from
    KBUILD_CFLAGS.
    
    [1]: https://lore.kernel.org/all/20221012180118.331005-2-masahiroy@kernel.org/
    
    
    
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
    Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
    80b6093b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7