projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8635e8d
)
scripts/kallsyms: constify long_options
author
Masahiro Yamada
<masahiroy@kernel.org>
Mon, 5 Jun 2023 12:04:00 +0000
(21:04 +0900)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Wed, 14 Jun 2023 19:47:04 +0000
(
04:47
+0900)
getopt_long() does not modify this.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
scripts/kallsyms.c
patch
|
blob
|
history
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index 0d2db41177b2344fbc17f98146de1e15d763d463..8e97ac7b38a696491ee04cd41a4eb7dbf174e2f6 100644
(file)
--- 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},