Commit 3ebd7941 authored by Michael Davidson's avatar Michael Davidson Committed by Greg Kroah-Hartman

kbuild: clang: add -no-integrated-as to KBUILD_[AC]FLAGS

commit a37c45cd upstream.

The Linux Kernel relies on GCC's acceptance of inline assembly as an
opaque object which will not have any validation performed on the content.
The current behaviour in LLVM is to perform validation of the contents by
means of parsing the input if the MC layer can handle it.

Disable clangs integrated assembler and use the GNU assembler instead.

Wording-mostly-from: Saleem Abdulrasool <>
Signed-off-by: default avatarMichael Davidson <>
Signed-off-by: default avatarMatthias Kaehlcke <>
Signed-off-by: Masahiro Yamada's avatarMasahiro Yamada <>
Signed-off-by: default avatarNathan Chancellor <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent cbb5fc70
......@@ -719,6 +719,8 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
# See modpost pattern 2
KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
# These warnings generated too much noise in a regular build.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment