Skip to content
Snippets Groups Projects
Commit c1c06a97 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Guenter Roeck
Browse files

FROMLIST: efi/libstub: Disable some warnings for x86{,_64}

When building the kernel with Clang, some disabled warnings appear
because this Makefile overrides KBUILD_CFLAGS for x86{,_64}. Add them to
this list so that the build is clean again.

-Wpointer-sign was disabled for the whole kernel before the beginning
of git history.

-Waddress-of-packed-member was disabled for the whole kernel in
commit bfb38988 ("kbuild: clang: Disable 'address-of-packed-member'
warning") and for x86/boot/compressed in commit 20c6c189 ("x86/boot:
Disable the address-of-packed-member compiler warning").

-Wgnu was disabled for the whole kernel in commit 61163efa ("kbuild:
LLVMLinux: Add Kbuild support for building kernel with Clang") and for
x86/boot/compressed in commit 6c3b56b1 ("x86/boot: Disable Clang
warnings about GNU extensions").

Link: https://github.com/ClangBuiltLinux/linux/issues/112


Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Tested-by: default avatarNick Desaulniers <ndesaulniers@google.com>
(am from https://lore.kernel.org/patchwork/patch/999058/)
(also found at https://lkml.kernel.org/r/20181013010348.6740-1-natechancellor@gmail.com

)

BUG=chromium:897984
TEST=build for lakitu

Change-Id: Ibe18a22243f5c99c3ceb5b93f8a648ffaa1c7f66
Signed-off-by: default avatarGuenter Roeck <groeck@chromium.org>
parent 6825e3a2
No related branches found
No related tags found
No related merge requests found
Loading
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