Re: [PATCH 07/12] Input: sysrq: mv sysrq into drivers/tty/sysrq.c

From
Joel Granados <joel.granados@kernel.org>
Date
2025-05-13 07:49:50
Also in
linux-fsdevel, linux-mm, linux-serial, lkml, rcu
Reply to
Kees Cook, 2025-05-09
On Fri, May 09, 2025 at 10:10:28AM -0700, Kees Cook wrote:
On Fri, May 09, 2025 at 02:54:11PM +0200, Joel Granados wrote:
quoted
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 as the former is local to
kernel/sysctl.c.
nit: do_proc_dointvec_minmax
Thx. I even added a small comment to the commit message to clarify:
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.
I'll also put a comment in the code to make sure that a min max is not
added by mistake.

Best

-- 

Joel Granados

Attachments

Thread (43 messages) 43 messages, 7 authors, last reply 2025-05-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help