summaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-06-05 14:04:00 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2023-06-14 21:47:04 +0200
commit92e74fb6e6196d642505ae2b74a8e327202afef9 (patch)
tree058f493d3a33ed1cfe41255744430a5a231f6841 /scripts/kallsyms.c
parentRevert "[PATCH] uml: export symbols added by GCC hardened" (diff)
downloadlinux-92e74fb6e6196d642505ae2b74a8e327202afef9.tar.xz
linux-92e74fb6e6196d642505ae2b74a8e327202afef9.zip
scripts/kallsyms: constify long_options
getopt_long() does not modify this. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <n.schier@avm.de>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 0d2db41177b2..8e97ac7b38a6 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -806,7 +806,7 @@ static void record_relative_base(void)
int main(int argc, char **argv)
{
while (1) {
- static struct option long_options[] = {
+ static const struct option long_options[] = {
{"all-symbols", no_argument, &all_symbols, 1},
{"absolute-percpu", no_argument, &absolute_percpu, 1},
{"base-relative", no_argument, &base_relative, 1},