summaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2023-07-09 23:17:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-04 15:28:40 +0200
commit882f7a64edd119bc4ac9c96b37c2ef365a687d45 (patch)
tree7321afe657bb37846c6d631858018776edd3584e /lib/dynamic_debug.c
parentbinderfs: Drop unused #include <linux/radix-tree.h> (diff)
downloadlinux-882f7a64edd119bc4ac9c96b37c2ef365a687d45.tar.xz
linux-882f7a64edd119bc4ac9c96b37c2ef365a687d45.zip
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>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index fdd6d9800a70..71b22d206a1b 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -88,7 +88,7 @@ static inline const char *trim_prefix(const char *path)
return path + skip;
}
-static struct { unsigned flag:8; char opt_char; } opt_array[] = {
+static const struct { unsigned flag:8; char opt_char; } opt_array[] = {
{ _DPRINTK_FLAGS_PRINT, 'p' },
{ _DPRINTK_FLAGS_INCL_MODNAME, 'm' },
{ _DPRINTK_FLAGS_INCL_FUNCNAME, 'f' },