# 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 
- List: linux-modules
- Page: https://ratatoskr.run/linux-modules/2025/05/311763
- Thread: https://ratatoskr.run/linux-modules/2025/05/311539/t.md

````text
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:
> > 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

- [signature.asc](https://ratatoskr.run/linux-modules/2025/05/311763/attachment/0) (application/pgp-signature, 659 bytes)
