summaryrefslogtreecommitdiff
path: root/include/linux/moduleparam.h
diff options
context:
space:
mode:
authorPetr Pavlu <petr.pavlu@suse.com>2026-03-13 14:48:03 +0100
committerSami Tolvanen <samitolvanen@google.com>2026-03-18 21:43:18 +0000
commit65f535501e2a3378629b8650eca553920de5e5a2 (patch)
tree625ec0bf7f30840c5e10b4ef232c7a3a71a3fd34 /include/linux/moduleparam.h
parentdeffe1edba626d474fef38007c03646ca5876a0e (diff)
downloadlwn-65f535501e2a3378629b8650eca553920de5e5a2.tar.gz
lwn-65f535501e2a3378629b8650eca553920de5e5a2.zip
module: Clean up parse_args() arguments
* Use the preferred `unsigned int` over plain `unsigned` for the `num` parameter. * Synchronize the parameter names in moduleparam.h with the ones used by the implementation in params.c. Signed-off-by: Petr Pavlu <petr.pavlu@suse.com> Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Diffstat (limited to 'include/linux/moduleparam.h')
-rw-r--r--include/linux/moduleparam.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
index 8667f72503d9..604bc6e9f3a1 100644
--- a/include/linux/moduleparam.h
+++ b/include/linux/moduleparam.h
@@ -417,12 +417,12 @@ extern bool parameqn(const char *name1, const char *name2, size_t n);
typedef int (*parse_unknown_fn)(char *param, char *val, const char *doing, void *arg);
/* Called on module insert or kernel boot */
-extern char *parse_args(const char *name,
+extern char *parse_args(const char *doing,
char *args,
const struct kernel_param *params,
- unsigned num,
- s16 level_min,
- s16 level_max,
+ unsigned int num,
+ s16 min_level,
+ s16 max_level,
void *arg, parse_unknown_fn unknown);
/* Called by module remove. */