* [PATCH] smatch_scripts: Fix incomplete quoting in kchecker make command
@ 2025-12-15 13:05 Harshit Mogalapalli
2025-12-15 13:35 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Harshit Mogalapalli @ 2025-12-15 13:05 UTC (permalink / raw)
To: dan.carpenter, error27, smatch; +Cc: harshit.m.mogalapalli
The previous commit added quotes around some variables and that
caused empty string arguments when variables are unset. Use
conditional expansion to only quote when variables are set.
I see something like this
$ kchecker --spammy net/ethtool/ioctl.c
make: *** empty string invalid as file name. Stop.
Fixes: 9b3323efbe7f ("kchecker: Add quotes around variables")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
---
I have tested it on mine with no variables set, worth testing it when
some of these varaibles are set as well.
---
smatch_scripts/kchecker | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/smatch_scripts/kchecker b/smatch_scripts/kchecker
index 782c3717b2a7..90e3507cc10f 100755
--- a/smatch_scripts/kchecker
+++ b/smatch_scripts/kchecker
@@ -82,4 +82,4 @@ if [[ ! -z $O ]] ; then
KERNEL_O="O=$O"
fi
-make "$KERNEL_CROSS_COMPILE" "$KERNEL_ARCH" "$KERNEL_O" C=2 "$ENDIAN" CHECK="$PRE $CMD $POST" $oname
+make ${KERNEL_CROSS_COMPILE:+"$KERNEL_CROSS_COMPILE"} ${KERNEL_ARCH:+"$KERNEL_ARCH"} ${KERNEL_O:+"$KERNEL_O"} C=2 ${ENDIAN:+"$ENDIAN"} CHECK="$PRE $CMD $POST" $oname
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] smatch_scripts: Fix incomplete quoting in kchecker make command
2025-12-15 13:05 [PATCH] smatch_scripts: Fix incomplete quoting in kchecker make command Harshit Mogalapalli
@ 2025-12-15 13:35 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2025-12-15 13:35 UTC (permalink / raw)
To: Harshit Mogalapalli; +Cc: error27, smatch
On Mon, Dec 15, 2025 at 05:05:18AM -0800, Harshit Mogalapalli wrote:
> The previous commit added quotes around some variables and that
> caused empty string arguments when variables are unset. Use
> conditional expansion to only quote when variables are set.
>
> I see something like this
>
> $ kchecker --spammy net/ethtool/ioctl.c
> make: *** empty string invalid as file name. Stop.
>
> Fixes: 9b3323efbe7f ("kchecker: Add quotes around variables")
> Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
> ---
> I have tested it on mine with no variables set, worth testing it when
> some of these varaibles are set as well.
Thanks! Applied.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-15 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-15 13:05 [PATCH] smatch_scripts: Fix incomplete quoting in kchecker make command Harshit Mogalapalli
2025-12-15 13:35 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox