aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorPetr Pavlu <[email protected]>2025-06-30 14:32:35 +0000
committerDaniel Gomez <[email protected]>2025-07-31 11:57:44 +0000
commita7c54b2b41dd1f6ec780e7fbfb13f70c64c9731d (patch)
treee5ff647ff0f008308fb97c8fefe9cd1cc1b90392 /rust/helpers/bug.c
parentmodule: Restore the moduleparam prefix length check (diff)
downloadkernel-a7c54b2b41dd1f6ec780e7fbfb13f70c64c9731d.tar.gz
kernel-a7c54b2b41dd1f6ec780e7fbfb13f70c64c9731d.zip
tracing: Replace MAX_PARAM_PREFIX_LEN with MODULE_NAME_LEN
Use the MODULE_NAME_LEN definition in module_exists() to obtain the maximum size of a module name, instead of using MAX_PARAM_PREFIX_LEN. The values are the same but MODULE_NAME_LEN is more appropriate in this context. MAX_PARAM_PREFIX_LEN was added in commit 730b69d22525 ("module: check kernel param length at compile time, not runtime") only to break a circular dependency between module.h and moduleparam.h, and should mostly be limited to use in moduleparam.h. Signed-off-by: Petr Pavlu <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Masami Hiramatsu <[email protected]> Reviewed-by: Daniel Gomez <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions