path: root/arch/arm64/Makefile
diff options
authorWill Deacon <>2015-10-08 11:11:17 +0100
committerWill Deacon <>2015-10-12 17:40:12 +0100
commitb6dd8e0719c0d2d01429639a11b7bc2677de240c (patch)
treeb3075dce1127da62e18acbf2bf6261eda967a500 /arch/arm64/Makefile
parent25cb62b76430a91cc6195f902e61c2cb84ade622 (diff)
arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419
Commit df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419") sets CFLAGS_MODULE to ensure that the large memory model is used by the compiler when building kernel modules. However, CFLAGS_MODULE is an environment variable and intended to be overridden on the command line, which appears to be the case with the Ubuntu kernel packaging system, so use KBUILD_CFLAGS_MODULE instead. Cc: <> Cc: Ard Biesheuvel <> Fixes: df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419") Reported-by: Dann Frazier <> Tested-by: Dann Frazier <> Signed-off-by: Will Deacon <>
Diffstat (limited to 'arch/arm64/Makefile')
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index f9914d7c1bb0..d10b5d483022 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -42,7 +42,7 @@ endif
CHECKFLAGS += -D__aarch64__
ifeq ($(CONFIG_ARM64_ERRATUM_843419), y)
-CFLAGS_MODULE += -mcmodel=large
+KBUILD_CFLAGS_MODULE += -mcmodel=large
# Default value