aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rustdoc_test_gen.rs
diff options
context:
space:
mode:
authorPetr Pavlu <[email protected]>2025-06-30 14:32:36 +0000
committerDaniel Gomez <[email protected]>2025-07-31 11:57:47 +0000
commit40a826bd6c82ae45cfd3a19cd2a60a10f56b74c0 (patch)
tree4bb892d5d433d7699353c19b21c77c52b2619731 /scripts/rustdoc_test_gen.rs
parenttracing: Replace MAX_PARAM_PREFIX_LEN with MODULE_NAME_LEN (diff)
downloadkernel-40a826bd6c82ae45cfd3a19cd2a60a10f56b74c0.tar.gz
kernel-40a826bd6c82ae45cfd3a19cd2a60a10f56b74c0.zip
module: Rename MAX_PARAM_PREFIX_LEN to __MODULE_NAME_LEN
The maximum module name length (MODULE_NAME_LEN) is somewhat confusingly defined in terms of the maximum parameter prefix length (MAX_PARAM_PREFIX_LEN), when in fact the dependency is in the opposite direction. This split originates from commit 730b69d22525 ("module: check kernel param length at compile time, not runtime"). The code needed to use MODULE_NAME_LEN in moduleparam.h, but because module.h requires moduleparam.h, this created a circular dependency. It was resolved by introducing MAX_PARAM_PREFIX_LEN in moduleparam.h and defining MODULE_NAME_LEN in module.h in terms of MAX_PARAM_PREFIX_LEN. Rename MAX_PARAM_PREFIX_LEN to __MODULE_NAME_LEN for clarity. This matches the similar approach of defining MODULE_INFO in module.h and __MODULE_INFO in moduleparam.h. Signed-off-by: Petr Pavlu <[email protected]> Reviewed-by: Daniel Gomez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions