[RFC PATCH v2 3/5] powerpc/syscalls: Remove unused prefix parameter

Michael Ellerman mpe at ellerman.id.au
Thu Jan 17 00:27:12 AEDT 2019


We never pass a prefix so remove the logic for it.

Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
---
 arch/powerpc/kernel/syscalls/Makefile      | 3 +--
 arch/powerpc/kernel/syscalls/syscallhdr.sh | 4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)

v2: No change.

diff --git a/arch/powerpc/kernel/syscalls/Makefile b/arch/powerpc/kernel/syscalls/Makefile
index 5e65f68fb7b7..3d9d4e07f725 100644
--- a/arch/powerpc/kernel/syscalls/Makefile
+++ b/arch/powerpc/kernel/syscalls/Makefile
@@ -11,8 +11,7 @@ systbl := $(srctree)/$(src)/syscalltbl.sh
 
 quiet_cmd_syshdr = SYSHDR  $@
       cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@'	\
-		   '$(syshdr_abis_$(basetarget))'		\
-		   '$(syshdr_pfx_$(basetarget))'
+		   '$(syshdr_abis_$(basetarget))'
 
 quiet_cmd_systbl = SYSTBL  $@
       cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@'	\
diff --git a/arch/powerpc/kernel/syscalls/syscallhdr.sh b/arch/powerpc/kernel/syscalls/syscallhdr.sh
index e1e490ea10ab..9e066d026eeb 100644
--- a/arch/powerpc/kernel/syscalls/syscallhdr.sh
+++ b/arch/powerpc/kernel/syscalls/syscallhdr.sh
@@ -4,7 +4,6 @@
 in="$1"
 out="$2"
 my_abis=`echo "($3)" | tr ',' '|'`
-prefix="$4"
 
 fileguard=_UAPI_ASM_POWERPC_`basename "$out" | sed \
 	-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
@@ -16,8 +15,7 @@ grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
 
 	nxt=0
 	while read nr abi name entry compat ; do
-		printf "#define __NR_%s%s\t%s\n" \
-			"${prefix}" "${name}" "${nr}"
+		printf "#define __NR_%s\t%s\n" "${name}" "${nr}"
 		nxt=$((nr+1))
 	done
 
-- 
2.20.1



More information about the Linuxppc-dev mailing list