diff options
| author | Madhavan Srinivasan <[email protected]> | 2025-04-23 08:21:54 +0000 |
|---|---|---|
| committer | Madhavan Srinivasan <[email protected]> | 2025-04-24 06:55:39 +0000 |
| commit | e3f506b78d921e48a00d005bea5c45ec36a99240 (patch) | |
| tree | def525c5e108745a426020a5f7e1c0ad13d0656c /mm/mm_init.c | |
| parent | powerpc/boot: Check for ld-option support (diff) | |
| download | kernel-e3f506b78d921e48a00d005bea5c45ec36a99240.tar.gz kernel-e3f506b78d921e48a00d005bea5c45ec36a99240.zip | |
powerpc/boot: Fix dash warning
'commit b2accfe7ca5b ("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: b2accfe7ca5b ("powerpc/boot: Check for ld-option support")
Reported-by: Stephen Rothwell <[email protected]>
Suggested-by: Stephen Rothwell <[email protected]>
Tested-by: Venkat Rao Bagalkote <[email protected]>
Reviewed-by: Stephen Rothwell <[email protected]>
Signed-off-by: Madhavan Srinivasan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions
