diff options
author | Tiezhu Yang <yangtiezhu@loongson.cn> | 2023-05-30 13:09:57 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-06-05 17:36:17 +0300 |
commit | 49f3806d89e4cf9e330b6f2e39db1c913a8fd25a (patch) | |
tree | c18e44c0c48696f4ea9a538056e86db18c349b07 /tools/perf/arch/loongarch/entry | |
parent | 16203e9cd01896b4244100a8e3fb9f6e612ab2b1 (diff) | |
download | linux-49f3806d89e4cf9e330b6f2e39db1c913a8fd25a.tar.xz |
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/loongarch/entry')
-rwxr-xr-x | tools/perf/arch/loongarch/entry/syscalls/mksyscalltbl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/loongarch/entry/syscalls/mksyscalltbl b/tools/perf/arch/loongarch/entry/syscalls/mksyscalltbl index c52156f7204d..5fb83bd87503 100755 --- a/tools/perf/arch/loongarch/entry/syscalls/mksyscalltbl +++ b/tools/perf/arch/loongarch/entry/syscalls/mksyscalltbl @@ -50,7 +50,7 @@ create_table_from_c() create_table() { - echo "static const char *syscalltbl_loongarch[] = {" + echo "static const char *const syscalltbl_loongarch[] = {" create_table_from_c echo "};" } |