Input: sysrq: mv sysrq into drivers/tty/sysrq.c
authorJoel Granados <joel.granados@kernel.org>
Fri, 2 May 2025 20:47:06 +0000 (22:47 +0200)
committerJoel Granados <joel.granados@kernel.org>
Wed, 23 Jul 2025 09:52:48 +0000 (11:52 +0200)
commit79ac8df97408b97175c01b6bff5ce0a97f35b439
treee8fee69efebb33a050ad5b52cc2f7348b230434c
parent8e5f04b0d58c734c69a0b6e26317561919299638
Input: sysrq: mv sysrq into drivers/tty/sysrq.c

Move both sysrq ctl_table and supported sysrq_sysctl_handler helper
function into drivers/tty/sysrq.c. Replaced the __do_proc_dointvec in
helper function with do_proc_dointvec_minmax as the former is local to
kernel/sysctl.c. Here we use the minmax version of do_proc_dointvec
because do_proc_dointvec is static and calling do_proc_dointvec_minmax
with a NULL min and max is the same as calling do_proc_dointvec.

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kernel/sysctl.c.

Reviewed-by: Kees Cook <kees@kernel.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
drivers/tty/sysrq.c
kernel/sysctl.c