]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Sep 2023 14:48:07 +0000 (15:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Sep 2023 14:48:07 +0000 (15:48 +0100)
added patches:
powerpc-32s-fix-assembler-warning-about-r0.patch

queue-5.4/powerpc-32s-fix-assembler-warning-about-r0.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/powerpc-32s-fix-assembler-warning-about-r0.patch b/queue-5.4/powerpc-32s-fix-assembler-warning-about-r0.patch
new file mode 100644 (file)
index 0000000..fc457b1
--- /dev/null
@@ -0,0 +1,37 @@
+From b51ba4fe2e134b631f9c8f45423707aab71449b5 Mon Sep 17 00:00:00 2001
+From: Christophe Leroy <christophe.leroy@csgroup.eu>
+Date: Thu, 6 Aug 2020 06:01:42 +0000
+Subject: powerpc/32s: Fix assembler warning about r0
+
+From: Christophe Leroy <christophe.leroy@csgroup.eu>
+
+commit b51ba4fe2e134b631f9c8f45423707aab71449b5 upstream.
+
+The assembler says:
+  arch/powerpc/kernel/head_32.S:1095: Warning: invalid register expression
+
+It's objecting to the use of r0 as the RA argument. That's because
+when RA = 0 the literal value 0 is used, rather than the content of
+r0, making the use of r0 in the source potentially confusing.
+
+Fix it to use a literal 0, the generated code is identical.
+
+Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
+Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
+Link: https://lore.kernel.org/r/2b69ac8e1cddff6f808fc7415907179eab4aae9e.1596693679.git.christophe.leroy@csgroup.eu
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/powerpc/kernel/head_32.S |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/powerpc/kernel/head_32.S
++++ b/arch/powerpc/kernel/head_32.S
+@@ -922,7 +922,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_HPTE_T
+        */
+       lis     r5, abatron_pteptrs@h
+       ori     r5, r5, abatron_pteptrs@l
+-      stw     r5, 0xf0(r0)    /* This much match your Abatron config */
++      stw     r5, 0xf0(0)     /* This much match your Abatron config */
+       lis     r6, swapper_pg_dir@h
+       ori     r6, r6, swapper_pg_dir@l
+       tophys(r5, r5)
index bd20d5de8a4f053344dce58c8ea791d5d5cd9b41..dce4ecd698165294bad4601636e94f6b2af539dc 100644 (file)
@@ -41,3 +41,4 @@ scsi-storvsc-always-set-no_report_opcodes.patch
 alsa-seq-oss-fix-racy-open-close-of-midi-devices.patch
 platform-mellanox-fix-mlxbf-tmfifo-not-handling-all-.patch
 net-avoid-address-overwrite-in-kernel_connect.patch
+powerpc-32s-fix-assembler-warning-about-r0.patch