Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dyndbg: constify opt_array

It is never modified, so mark it const.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20230709-dyndbg-filename-v2-1-fd83beef0925@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thomas Weißschuh and committed by
Greg Kroah-Hartman
882f7a64 a5702920

+1 -1
+1 -1
lib/dynamic_debug.c
··· 88 88 return path + skip; 89 89 } 90 90 91 - static struct { unsigned flag:8; char opt_char; } opt_array[] = { 91 + static const struct { unsigned flag:8; char opt_char; } opt_array[] = { 92 92 { _DPRINTK_FLAGS_PRINT, 'p' }, 93 93 { _DPRINTK_FLAGS_INCL_MODNAME, 'm' }, 94 94 { _DPRINTK_FLAGS_INCL_FUNCNAME, 'f' },