Re: [PATCH 4/7] sysctl: Move jiffies converters to kernel/time/jiffies.c
From: Joel Granados
Date: Sun Nov 02 2025 - 02:55:15 EST
On Fri, Oct 17, 2025 at 10:32:14AM +0200, Joel Granados wrote:
> Move integer jiffies converters (proc_dointvec{_,_ms_,_userhz_}jiffies
> and proc_dointvec_ms_jiffies_minmax) to kernel/time/jiffies.c. Error
> stubs for when CONFIG_PRCO_SYSCTL is not defined are not reproduced
> because all the jiffies converters go through proc_dointvec_conv which
> is already stubbed. This is part of the greater effort to move sysctl
> logic out of kernel/sysctl.c thereby reducing merge conflicts in
> kernel/sysctl.c.
Had a warning on linux-next with this. Going to fix it with this
diff --git i/include/linux/jiffies.h w/include/linux/jiffies.h
index 57da8eff94d3..fdef2c155c27 100644
--- i/include/linux/jiffies.h
+++ w/include/linux/jiffies.h
@@ -611,6 +611,7 @@ extern unsigned long nsecs_to_jiffies(u64 n);
#define TIMESTAMP_SIZE 30
+struct ctl_table;
int proc_dointvec_jiffies(const struct ctl_table *table, int dir, void *buffer,
size_t *lenp, loff_t *ppos);
int proc_dointvec_ms_jiffies_minmax(const struct ctl_table *table, int dir,
lines 1-12/12 (END)
Will not resend a V2 since it is such a small change.
Best
--
Joel Granados
Attachment:
signature.asc
Description: PGP signature