aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/arch/x86/entry/syscalls/syscalltbl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/arch/x86/entry/syscalls/syscalltbl.sh')
-rwxr-xr-xtools/perf/arch/x86/entry/syscalls/syscalltbl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/arch/x86/entry/syscalls/syscalltbl.sh b/tools/perf/arch/x86/entry/syscalls/syscalltbl.sh
index 029a72c20b19..59d7914ed6bb 100755
--- a/tools/perf/arch/x86/entry/syscalls/syscalltbl.sh
+++ b/tools/perf/arch/x86/entry/syscalls/syscalltbl.sh
@@ -18,13 +18,13 @@ emit() {
syscall_macro "$nr" "$entry"
}
-echo "static const char *syscalltbl_${arch}[] = {"
+echo "static const char *const syscalltbl_${arch}[] = {"
sorted_table=$(mktemp /tmp/syscalltbl.XXXXXX)
grep '^[0-9]' "$in" | sort -n > $sorted_table
max_nr=0
-while read nr abi name entry compat; do
+while read nr _abi name entry _compat; do
if [ $nr -ge 512 ] ; then # discard compat sycalls
break
fi