From: Greg Kroah-Hartman Date: Tue, 23 Aug 2022 07:01:03 +0000 (+0200) Subject: 4.14-stable patches X-Git-Tag: v4.9.326~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ea2e2ce721cc50ad9d69da5d6134845e7255bf5;p=thirdparty%2Fkernel%2Fstable-queue.git 4.14-stable patches added patches: kbuild-clear-ldflags-in-the-top-makefile.patch --- diff --git a/queue-4.14/kbuild-clear-ldflags-in-the-top-makefile.patch b/queue-4.14/kbuild-clear-ldflags-in-the-top-makefile.patch new file mode 100644 index 00000000000..936f41b8c09 --- /dev/null +++ b/queue-4.14/kbuild-clear-ldflags-in-the-top-makefile.patch @@ -0,0 +1,35 @@ +From ce99d0bf312daf0178e640da9e3c93b773a67e7d Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada +Date: Fri, 16 Mar 2018 16:37:09 +0900 +Subject: kbuild: clear LDFLAGS in the top Makefile + +From: Masahiro Yamada + +commit ce99d0bf312daf0178e640da9e3c93b773a67e7d upstream. + +Currently LDFLAGS is not cleared, so same flags are accumulated in +LDFLAGS when the top Makefile is recursively invoked. + +I found unneeded rebuild for ARCH=arm64 when CONFIG_TRIM_UNUSED_KSYMS +is enabled. If include/generated/autoksyms.h is updated, the top +Makefile is recursively invoked, then arch/arm64/Makefile adds one +more '-maarch64linux'. Due to the command line change, modules are +rebuilt needlessly. + +Signed-off-by: Masahiro Yamada +Acked-by: Nicolas Pitre +Signed-off-by: Greg Kroah-Hartman +--- + Makefile | 1 + + 1 file changed, 1 insertion(+) + +--- a/Makefile ++++ b/Makefile +@@ -426,6 +426,7 @@ KBUILD_CFLAGS_KERNEL := + KBUILD_AFLAGS_MODULE := -DMODULE + KBUILD_CFLAGS_MODULE := -DMODULE + KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds ++LDFLAGS := + GCC_PLUGINS_CFLAGS := + CLANG_FLAGS := + diff --git a/queue-4.14/series b/queue-4.14/series index 552a27126b7..3b48305973b 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -205,6 +205,7 @@ powerpc-pci-fix-get_phb_number-locking.patch i40e-fix-to-stop-tx_timeout-recovery-if-globr-fails.patch fec-fix-timer-capture-timing-in-fec_ptp_enable_pps.patch igb-add-lock-to-avoid-data-race.patch +kbuild-clear-ldflags-in-the-top-makefile.patch drm-meson-fix-refcount-bugs-in-meson_vpu_has_availab.patch pci-add-acs-quirk-for-broadcom-bcm5750x-nics.patch irqchip-tegra-fix-overflow-implicit-truncation-warni.patch