summaryrefslogtreecommitdiff
path: root/rust/kernel/io/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorGal Pressman <gal@nvidia.com>2026-01-06 18:33:21 +0200
committerAndrew Morton <akpm@linux-foundation.org>2026-01-19 12:30:01 -0800
commit90f3c123247e9564f2ecf861946ec41ceaf5e198 (patch)
tree6bf00092e50a3704ba6c3f84d9a4786c2c50d33f /rust/kernel/io/git@git.tavy.me:linux.git
parentf9a49aa302a05e91ca01f69031cb79a0ea33031f (diff)
panic: only warn about deprecated panic_print on write access
The panic_print_deprecated() warning is being triggered on both read and write operations to the panic_print parameter. This causes spurious warnings when users run 'sysctl -a' to list all sysctl values, since that command reads /proc/sys/kernel/panic_print and triggers the deprecation notice. Modify the handlers to only emit the deprecation warning when the parameter is actually being set: - sysctl_panic_print_handler(): check 'write' flag before warning. - panic_print_get(): remove the deprecation call entirely. This way, users are only warned when they actively try to use the deprecated parameter, not when passively querying system state. Link: https://lkml.kernel.org/r/20260106163321.83586-1-gal@nvidia.com Fixes: ee13240cd78b ("panic: add note that panic_print sysctl interface is deprecated") Fixes: 2683df6539cb ("panic: add note that 'panic_print' parameter is deprecated") Signed-off-by: Gal Pressman <gal@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Reviewed-by: Nimrod Oren <noren@nvidia.com> Cc: Feng Tang <feng.tang@linux.alibaba.com> Cc: Joel Granados <joel.granados@kernel.org> Cc: Petr Mladek <pmladek@suse.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'rust/kernel/io/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions