* [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419
@ 2015-10-08 17:32 Will Deacon
2015-10-08 17:47 ` Catalin Marinas
2015-10-08 19:44 ` Dann Frazier
0 siblings, 2 replies; 4+ messages in thread
From: Will Deacon @ 2015-10-08 17:32 UTC (permalink / raw)
To: linux-arm-kernel
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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reported-by: Dann Frazier <dann.frazier@canonical.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
---
arch/arm64/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
endif
# Default value
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419
2015-10-08 17:32 [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419 Will Deacon
@ 2015-10-08 17:47 ` Catalin Marinas
2015-10-08 17:49 ` Will Deacon
2015-10-08 19:44 ` Dann Frazier
1 sibling, 1 reply; 4+ messages in thread
From: Catalin Marinas @ 2015-10-08 17:47 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Oct 08, 2015 at 06:32:35PM +0100, Will Deacon wrote:
> 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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Reported-by: Dann Frazier <dann.frazier@canonical.com>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
Just you case you forgot, I think you also need:
Fixes: df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419")
Cc: <stable@vger.kernel.org>
--
Catalin
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419
2015-10-08 17:47 ` Catalin Marinas
@ 2015-10-08 17:49 ` Will Deacon
0 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2015-10-08 17:49 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Oct 08, 2015 at 06:47:50PM +0100, Catalin Marinas wrote:
> On Thu, Oct 08, 2015 at 06:32:35PM +0100, Will Deacon wrote:
> > 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: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> > Reported-by: Dann Frazier <dann.frazier@canonical.com>
> > Signed-off-by: Will Deacon <will.deacon@arm.com>
>
> Just you case you forgot, I think you also need:
>
> Fixes: df057cc7b4fa ("arm64: errata: add module build workaround for erratum #843419")
> Cc: <stable@vger.kernel.org>
Yup, got those suckers locally :)
Will
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419
2015-10-08 17:32 [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419 Will Deacon
2015-10-08 17:47 ` Catalin Marinas
@ 2015-10-08 19:44 ` Dann Frazier
1 sibling, 0 replies; 4+ messages in thread
From: Dann Frazier @ 2015-10-08 19:44 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Oct 8, 2015 at 10:32 AM, Will Deacon <will.deacon@arm.com> wrote:
> 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.
Oh - didn't notice you'd beat me to it :)
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> Reported-by: Dann Frazier <dann.frazier@canonical.com>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
fwiw, I did a full Ubuntu build w/ this and can confirm modules load again.
Tested-by: dann frazier <dann.frazier@canonical.com>
> ---
> arch/arm64/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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
> endif
>
> # Default value
> --
> 2.1.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-08 19:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-08 17:32 [PATCH] arm64: errata: use KBUILD_CFLAGS_MODULE for erratum #843419 Will Deacon
2015-10-08 17:47 ` Catalin Marinas
2015-10-08 17:49 ` Will Deacon
2015-10-08 19:44 ` Dann Frazier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).