Skip to content
Snippets Groups Projects
Commit 5bc452fc authored by Waiman Long's avatar Waiman Long
Browse files

kbuild: Remove -Wno-format-invalid-specifier from clang block

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2074118



commit a312b60d
Author: Nathan Chancellor <nathan@kernel.org>
Date:   Mon, 16 Aug 2021 13:20:54 -0700

    kbuild: Remove -Wno-format-invalid-specifier from clang block

    Turning on -Wformat does not reveal any instances of this warning across
    several different builds so remove this line to keep the number of
    disabled warnings as slim as possible.

    This has been disabled since commit 61163efa ("kbuild: LLVMLinux:
    Add Kbuild support for building kernel with Clang"), which does not
    explain exactly why it was turned off but since it was so long ago in
    terms of both the kernel and LLVM so it is possible that some bug got
    fixed along the way.

Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
Reviewed-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>

Signed-off-by: default avatarWaiman Long <longman@redhat.com>
parent 9d9b4c14
No related merge requests found
......@@ -795,7 +795,6 @@ KBUILD_CFLAGS += $(stackp-flags-y)
ifdef CONFIG_CC_IS_CLANG
KBUILD_CPPFLAGS += -Qunused-arguments
KBUILD_CFLAGS += -Wno-format-invalid-specifier
KBUILD_CFLAGS += -Wno-gnu
# CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the
# source of a reference will be _MergedGlobals and not on of the whitelisted names.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment