mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
panic: remove the unneeded panic_print_get()
panic_print_get() was introduced in commit2683df6539("panic: add note that 'panic_print' parameter is deprecated") to print out warning message of the deprecation of 'panic_print' on read access. Since commit90f3c12324("panic: only warn about deprecated panic_print on write access"), panic_print_get() wrapper is not needed anymore for read access, so remove it and use param_get_ulong() instead. Link: https://lore.kernel.org/20260902114851.77062-1-feng.tang@linux.alibaba.com Signed-off-by: Feng Tang <feng.tang@linux.alibaba.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Bradley Morgan <brads@mainlining.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
parent
7c1abe66f8
commit
033abd1e9b
|
|
@ -1216,14 +1216,9 @@ static int panic_print_set(const char *val, const struct kernel_param *kp)
|
|||
return param_set_ulong(val, kp);
|
||||
}
|
||||
|
||||
static int panic_print_get(char *val, const struct kernel_param *kp)
|
||||
{
|
||||
return param_get_ulong(val, kp);
|
||||
}
|
||||
|
||||
static const struct kernel_param_ops panic_print_ops = {
|
||||
.set = panic_print_set,
|
||||
.get = panic_print_get,
|
||||
.get = param_get_ulong,
|
||||
};
|
||||
__core_param_cb(panic_print, &panic_print_ops, &panic_print, 0644);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user