params: Introduce the param_unknown_fn type
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Nov 2023 15:11:42 +0000 (17:11 +0200)
committerKees Cook <keescook@chromium.org>
Fri, 1 Dec 2023 17:51:43 +0000 (09:51 -0800)
commit12cd3cd8c797e07afcc47bc4afa760e4ec75e9d7
tree23acdb1bd8c2fdfa3038f6465d17a06168979926
parentaabf7c37dfbce3e5fe24f0c86a34bc8f2f63cee8
params: Introduce the param_unknown_fn type

Introduce a new type for the callback to parse an unknown argument.
This unifies function prototypes which takes that as a parameter.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231120151419.1661807-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/moduleparam.h
kernel/params.c