]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Replace MAX_PARAM_PREFIX_LEN with MODULE_NAME_LEN
authorPetr Pavlu <petr.pavlu@suse.com>
Mon, 30 Jun 2025 14:32:35 +0000 (16:32 +0200)
committerDaniel Gomez <da.gomez@samsung.com>
Thu, 31 Jul 2025 11:57:44 +0000 (13:57 +0200)
commita7c54b2b41dd1f6ec780e7fbfb13f70c64c9731d
treee5ff647ff0f008308fb97c8fefe9cd1cc1b90392
parentbdc877ba6b7ff1b6d2ebeff11e63da4a50a54854
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 <petr.pavlu@suse.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Daniel Gomez <da.gomez@samsung.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20250630143535.267745-5-petr.pavlu@suse.com
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
kernel/trace/trace.c