diff options
author | Will Deacon <will.deacon@arm.com> | 2015-10-08 11:11:17 +0100 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-11-13 13:18:28 -0500 |
commit | 3a92ba8d3117c99b3a14e898f31fe2bb6c30a9d8 (patch) | |
tree | fec7bcd27e77fabb8ed44a73b969b88e701d1545 /arch | |
parent | 4e2dc9ce572650176e3ce3380ecaf7302547d610 (diff) | |
download | lwn-3a92ba8d3117c99b3a14e898f31fe2bb6c30a9d8.tar.gz lwn-3a92ba8d3117c99b3a14e898f31fe2bb6c30a9d8.zip |
arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419
[ Upstream commit b6dd8e0719c0d2d01429639a11b7bc2677de240c ]
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: <stable@vger.kernel.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Fixes: df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419")
Reported-by: Dann Frazier <dann.frazier@canonical.com>
Tested-by: Dann Frazier <dann.frazier@canonical.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index e7391aef5433..2d54c55400ed 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -33,7 +33,7 @@ endif CHECKFLAGS += -D__aarch64__ ifeq ($(CONFIG_ARM64_ERRATUM_843419), y) -CFLAGS_MODULE += -mcmodel=large +KBUILD_CFLAGS_MODULE += -mcmodel=large endif # Default value |