Skip to contentSkip to conversation

scripts: coccicheck: use "grep -E" instead of "egrep"

PATCH Applied Greg Kroah-Hartman 3 participants 4 messages Sep 21, 2022 – Nov 20, 2022 Coccinelle/Semantic Patches (SmPL)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: coccicheck: use "grep -E" instead of "egrep"

The latest version of grep claims that egrep is now obsolete so the build now contains warnings that look like:
egrep: warning: egrep is obsolescent; using grep -E
fix this up by moving the vdso Makefile to use "grep -E" instead.

---
 scripts/coccicheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccicheck +1 -1
index caba0bff6da7..2956fce8fa4f 100755
@@ -47,7 +47,7 @@ FLAGS="--very-quiet"
 # inspected there.
 #
 # --profile will not output if --very-quiet is used, so avoid it.
-echo $SPFLAGS | egrep -e "--profile|--show-trying" 2>&1 > /dev/null
+echo $SPFLAGS | grep -E -e "--profile|--show-trying" 2>&1 > /dev/null
 if [ $? -eq 0 ]; then
 	FLAGS="--quiet"
 fi
Signature · 1 line
2.37.3
maintainer Applied
#1 lore raw
Quoted 9 lines · Greg Kroah-Hartman

The latest version of grep claims that egrep is now obsolete so the build now contains warnings that look like:
egrep: warning: egrep is obsolescent; using grep -E
fix this up by moving the vdso Makefile to use "grep -E" instead.

Applied, thanks.

Quoted 21 lines
---
 scripts/coccicheck | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/coccicheck +1 -2
index caba0bff6da7..2956fce8fa4f 100755
@@ -47,7 +47,7 @@ FLAGS="--very-quiet"
 # inspected there.
 #
 # --profile will not output if --very-quiet is used, so avoid it.
-echo $SPFLAGS | egrep -e "--profile|--show-trying" 2>&1 > /dev/null
+echo $SPFLAGS | grep -E -e "--profile|--show-trying" 2>&1 > /dev/null
 if [ $? -eq 0 ]; then
 	FLAGS="--quiet"
 fi
--

2.37.3

#2 lore raw

Hi,

This patch can not be found in the torvalds/linux.git or next/linux-next.git tree, please take a look, thank you.

Thanks,
Tiezhu

maintainer
#3 lore raw
Quoted 6 lines

Hi,

This patch can not be found in the torvalds/linux.git or next/linux-next.git tree, please take a look, thank you.

I missed the last merge window. It is in my tree on kernel.org, though.

julia