linux/arch/powerpc
Madhavan Srinivasan e3f506b78d powerpc/boot: Fix dash warning
'commit b2accfe7ca ("powerpc/boot: Check for ld-option support")' suppressed
linker warnings, but the expressed used did not go well with POSIX shell (dash)
resulting with this warning

arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD segment with RWX permissions

Fix the check to handle the reported warning. Patch also fixes
couple of shellcheck reported errors for the same line.

In arch/powerpc/boot/wrapper line 237:
if [ $(${CROSS}ld -v --no-warn-rwx-segments &>/dev/null; echo $?) -eq 0 ]; then
     ^-- SC2046 (warning): Quote this to prevent word splitting.
       ^------^ SC2086 (info): Double quote to prevent globbing and word splitting.
                                            ^---------^ SC3020 (warning): In POSIX sh, &> is undefined.

Fixes: b2accfe7ca ("powerpc/boot: Check for ld-option support")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Suggested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250423082154.30625-1-maddy@linux.ibm.com
2025-04-24 12:25:39 +05:30
..
boot powerpc/boot: Fix dash warning 2025-04-24 12:25:39 +05:30
configs CRC cleanups for 6.15 2025-04-08 12:09:28 -07:00
crypto This update includes the following changes: 2025-03-29 10:01:55 -07:00
include powerpc updates for 6.15 #2 2025-04-02 12:35:49 -07:00
kernel powerpc64/ftrace: fix module loading without patchable function entries 2025-04-15 11:40:54 +05:30
kexec - The 7 patch series "powerpc/crash: use generic crashkernel 2025-04-01 10:06:52 -07:00
kvm A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
lib CRC updates for 6.15 2025-03-25 18:33:04 -07:00
math-emu
mm book3s64/radix : Align section vmemmap start address to PAGE_SIZE 2025-04-15 11:30:37 +05:30
net powerpc updates for 6.13 2024-11-23 10:44:31 -08:00
perf Driver core updates for 6.15-rc1 2025-04-01 11:02:03 -07:00
platforms powerpc: Add check to select PPC_RADIX_BROADCAST_TLBIE 2025-04-15 11:42:26 +05:30
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
tools powerpc/ftrace: Fix ftrace bug with KASAN=y 2024-11-10 22:33:51 +11:00
xmon powerpc updates for 6.15 2025-03-27 19:39:08 -07:00
Kbuild powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Kconfig - The 7 patch series "powerpc/crash: use generic crashkernel 2025-04-01 10:06:52 -07:00
Kconfig.debug powerpc: Remove UDBG_RTAS_CONSOLE 2025-02-26 21:15:09 +05:30
Makefile Kbuild updates for v6.13 2024-11-30 13:41:50 -08:00
Makefile.postlink powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00