Skip to content

Commit 92e74fb

Browse files
committed
scripts/kallsyms: constify long_options
getopt_long() does not modify this. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nicolas Schier <[email protected]>
1 parent 8635e8d commit 92e74fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kallsyms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ static void record_relative_base(void)
806806
int main(int argc, char **argv)
807807
{
808808
while (1) {
809-
static struct option long_options[] = {
809+
static const struct option long_options[] = {
810810
{"all-symbols", no_argument, &all_symbols, 1},
811811
{"absolute-percpu", no_argument, &absolute_percpu, 1},
812812
{"base-relative", no_argument, &base_relative, 1},

0 commit comments

Comments
 (0)