diff options
| author | Feng Tang <feng.tang@linux.alibaba.com> | 2026-09-02 19:48:51 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-09-13 21:33:36 -0700 |
| commit | d6b70c9ea5f0b8921e61196ba2c94956564e1db2 (patch) | |
| tree | dd5611d3442b827d428158f49bd4d3378f8f4f4f /kernel | |
| parent | bdd50ccadf4d086c9f3e757087a8a6b7d0dc06ca (diff) | |
| download | linux-next-d6b70c9ea5f0b8921e61196ba2c94956564e1db2.tar.gz linux-next-d6b70c9ea5f0b8921e61196ba2c94956564e1db2.zip | |
panic: remove the unneeded panic_print_get()
panic_print_get() was introduced in commit 2683df6539cb ("panic: add
note that 'panic_print' parameter is deprecated") to print out warning
message of the deprecation of 'panic_print' on read access.
Since commit 90f3c123247e ("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>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/panic.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index 7dda841c16f9..50715f14cf04 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -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); |
