Skip to content

Commit 92e74fb

Browse files
committed
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>
1 parent 8635e8d commit 92e74fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)