Skip to contentSkip to conversation

blk-crypto: Fix the num_prealloc_fallback_crypt_ctxs parameter description

PATCH Superseded Karl Mehltretter 1 participant 2 messages Sep 6 – Sep 7 Block layer

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk-crypto: Fix the num_prealloc_fallback_crypt_ctxs parameter description

The module parameter is num_prealloc_fallback_crypt_ctxs, but its MODULE_PARM_DESC() names num_prealloc_crypt_fallback_ctxs, so modinfo describes a parameter that does not exist and shows no description for the real one.

Use the parameter name in the description.

Fixes 488f6682c832 ("block: blk-crypto-fallback for Inline Encryption")
Assisted-by LLM
---
 block/blk-crypto-fallback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-crypto-fallback.c +1 -1
index 2a8f40a65158..877934db18ef 100644
@@ -34,7 +34,7 @@ MODULE_PARM_DESC(num_keyslots,
 
 static unsigned int num_prealloc_fallback_crypt_ctxs = 128;
 module_param(num_prealloc_fallback_crypt_ctxs, uint, 0);
-MODULE_PARM_DESC(num_prealloc_crypt_fallback_ctxs,
+MODULE_PARM_DESC(num_prealloc_fallback_crypt_ctxs,
 		 "Number of preallocated bio fallback crypto contexts for blk-crypto to use during crypto API fallback");
 
 struct bio_fallback_crypt_ctx {

base-commit: 986c24e0fe44f844b44d365b71ce831947f50298

Signature · 1 line
2.53.0
#1 lore raw
Quoted 4 lines · Karl Mehltretter

The module parameter is num_prealloc_fallback_crypt_ctxs, but its MODULE_PARM_DESC() names num_prealloc_crypt_fallback_ctxs, so modinfo describes a parameter that does not exist and shows no description for the real one.

One correction to the changelog: BLK_INLINE_ENCRYPTION_FALLBACK is bool, so this code is always built in and modinfo never shows it. The only place the description ends up is modules.builtin.modinfo, where module_param() and MODULE_PARM_DESC() produce one record each and name different parameters.

I will wait a bit for other feedback, then send a v2 with the changelog corrected.

Thanks,
Karl