]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Sep 2021 06:58:27 +0000 (08:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Sep 2021 06:58:27 +0000 (08:58 +0200)
added patches:
arm-8918-2-only-build-return_address-if-needed.patch
xtensa-fix-kconfig-unmet-dependency-warning-for-have_futex_cmpxchg.patch

queue-5.4/arm-8918-2-only-build-return_address-if-needed.patch [new file with mode: 0644]
queue-5.4/series
queue-5.4/xtensa-fix-kconfig-unmet-dependency-warning-for-have_futex_cmpxchg.patch [new file with mode: 0644]

diff --git a/queue-5.4/arm-8918-2-only-build-return_address-if-needed.patch b/queue-5.4/arm-8918-2-only-build-return_address-if-needed.patch
new file mode 100644 (file)
index 0000000..748f0dd
--- /dev/null
@@ -0,0 +1,65 @@
+From fb033c95c94ca1ee3d16e04ebdb85d65fb55fff8 Mon Sep 17 00:00:00 2001
+From: Ben Dooks <ben-linux@fluff.org>
+Date: Mon, 4 Nov 2019 18:15:15 +0100
+Subject: ARM: 8918/2: only build return_address() if needed
+
+From: Ben Dooks <ben-linux@fluff.org>
+
+commit fb033c95c94ca1ee3d16e04ebdb85d65fb55fff8 upstream.
+
+The system currently warns if the config conditions for
+building return_address in arch/arm/kernel/return_address.c
+are not met, leaving just an EXPORT_SYMBOL_GPL(return_address)
+of a function defined to be 'static linline'.
+This is a result of aeea3592a13b ("ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h").
+
+Since we're not going to build anything other than an exported
+symbol for something that is already being defined to be an
+inline-able return of NULL, just avoid building the code to
+remove the following warning:
+
+Fixes: aeea3592a13b ("ARM: 8158/1: LLVMLinux: use static inline in ARM ftrace.h")
+Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
+Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/arm/kernel/Makefile         |    6 +++++-
+ arch/arm/kernel/return_address.c |    4 ----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+--- a/arch/arm/kernel/Makefile
++++ b/arch/arm/kernel/Makefile
+@@ -17,10 +17,14 @@ CFLAGS_REMOVE_return_address.o = -pg
+ # Object file lists.
+ obj-y         := elf.o entry-common.o irq.o opcodes.o \
+-                 process.o ptrace.o reboot.o return_address.o \
++                 process.o ptrace.o reboot.o \
+                  setup.o signal.o sigreturn_codes.o \
+                  stacktrace.o sys_arm.o time.o traps.o
++ifneq ($(CONFIG_ARM_UNWIND),y)
++obj-$(CONFIG_FRAME_POINTER)   += return_address.o
++endif
++
+ obj-$(CONFIG_ATAGS)           += atags_parse.o
+ obj-$(CONFIG_ATAGS_PROC)      += atags_proc.o
+ obj-$(CONFIG_DEPRECATED_PARAM_STRUCT) += atags_compat.o
+--- a/arch/arm/kernel/return_address.c
++++ b/arch/arm/kernel/return_address.c
+@@ -7,8 +7,6 @@
+  */
+ #include <linux/export.h>
+ #include <linux/ftrace.h>
+-
+-#if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND)
+ #include <linux/sched.h>
+ #include <asm/stacktrace.h>
+@@ -53,6 +51,4 @@ void *return_address(unsigned int level)
+               return NULL;
+ }
+-#endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */
+-
+ EXPORT_SYMBOL_GPL(return_address);
index 12573ed0fd077f77b218f15fa8c19a14a769c618..c9f57d39da107a4b4767a5aab50b5e79e212f091 100644 (file)
@@ -4,6 +4,7 @@ ext4-report-correct-st_size-for-encrypted-symlinks.patch
 f2fs-report-correct-st_size-for-encrypted-symlinks.patch
 ubifs-report-correct-st_size-for-encrypted-symlinks.patch
 kthread-fix-pf_kthread-vs-to_kthread-race.patch
+xtensa-fix-kconfig-unmet-dependency-warning-for-have_futex_cmpxchg.patch
 gpu-ipu-v3-fix-i.mx-ipu-v3-offset-calculations-for-s.patch
 reset-reset-zynqmp-fixed-the-argument-data-type.patch
 qed-fix-the-vf-msix-vectors-flow.patch
@@ -13,3 +14,4 @@ perf-x86-intel-pt-fix-mask-of-num_address_ranges.patch
 perf-x86-amd-ibs-work-around-erratum-1197.patch
 perf-x86-amd-power-assign-pmu.module.patch
 cryptoloop-add-a-deprecation-warning.patch
+arm-8918-2-only-build-return_address-if-needed.patch
diff --git a/queue-5.4/xtensa-fix-kconfig-unmet-dependency-warning-for-have_futex_cmpxchg.patch b/queue-5.4/xtensa-fix-kconfig-unmet-dependency-warning-for-have_futex_cmpxchg.patch
new file mode 100644 (file)
index 0000000..32e9ae6
--- /dev/null
@@ -0,0 +1,40 @@
+From ed5aacc81cd41efc4d561e14af408d1003f7b855 Mon Sep 17 00:00:00 2001
+From: Randy Dunlap <rdunlap@infradead.org>
+Date: Wed, 26 May 2021 00:03:37 -0700
+Subject: xtensa: fix kconfig unmet dependency warning for HAVE_FUTEX_CMPXCHG
+
+From: Randy Dunlap <rdunlap@infradead.org>
+
+commit ed5aacc81cd41efc4d561e14af408d1003f7b855 upstream.
+
+XTENSA should only select HAVE_FUTEX_CMPXCHG when FUTEX is
+set/enabled. This prevents a kconfig warning.
+
+WARNING: unmet direct dependencies detected for HAVE_FUTEX_CMPXCHG
+  Depends on [n]: FUTEX [=n]
+  Selected by [y]:
+  - XTENSA [=y] && !MMU [=n]
+
+Fixes: d951ba21b959 ("xtensa: nommu: select HAVE_FUTEX_CMPXCHG")
+Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
+Cc: Max Filippov <jcmvbkbc@gmail.com>
+Cc: Chris Zankel <chris@zankel.net>
+Cc: linux-xtensa@linux-xtensa.org
+Message-Id: <20210526070337.28130-1-rdunlap@infradead.org>
+Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/xtensa/Kconfig |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/xtensa/Kconfig
++++ b/arch/xtensa/Kconfig
+@@ -27,7 +27,7 @@ config XTENSA
+       select HAVE_DMA_CONTIGUOUS
+       select HAVE_EXIT_THREAD
+       select HAVE_FUNCTION_TRACER
+-      select HAVE_FUTEX_CMPXCHG if !MMU
++      select HAVE_FUTEX_CMPXCHG if !MMU && FUTEX
+       select HAVE_HW_BREAKPOINT if PERF_EVENTS
+       select HAVE_IRQ_TIME_ACCOUNTING
+       select HAVE_OPROFILE