aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/mips
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2023-05-30 18:09:57 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2023-06-05 11:36:17 -0300
commit49f3806d89e4cf9e330b6f2e39db1c913a8fd25a (patch)
treec18e44c0c48696f4ea9a538056e86db18c349b07 /tools/perf/arch/mips
parentperf bench: Add missing setlocale() call to allow usage of %'d style formatting (diff)
downloadlinux-49f3806d89e4cf9e330b6f2e39db1c913a8fd25a.tar.gz
linux-49f3806d89e4cf9e330b6f2e39db1c913a8fd25a.zip
perf tools: Declare syscalltbl_*[] as const for all archs
syscalltbl_*[] should never be changing, let us declare it as const. Suggested-by: Ian Rogers <irogers@google.com> Reviewed-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Acked-by: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: loongarch@lists.linux.dev Link: https://lore.kernel.org/r/1685441401-8709-2-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/mips')
-rw-r--r--tools/perf/arch/mips/entry/syscalls/mksyscalltbl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/mips/entry/syscalls/mksyscalltbl b/tools/perf/arch/mips/entry/syscalls/mksyscalltbl
index fb1f49451af6..c0d93f959c4e 100644
--- a/tools/perf/arch/mips/entry/syscalls/mksyscalltbl
+++ b/tools/perf/arch/mips/entry/syscalls/mksyscalltbl
@@ -18,7 +18,7 @@ create_table()
{
local max_nr nr abi sc discard
- echo 'static const char *syscalltbl_mips_n64[] = {'
+ echo 'static const char *const syscalltbl_mips_n64[] = {'
while read nr abi sc discard; do
printf '\t[%d] = "%s",\n' $nr $sc
max_nr=$nr