linux-next: manual merge of the sysctl tree with the mm-nonmm-unstable tree
Mark Brown <[email protected]> Tue, 28 Jul 2026 18:39:51 +0100
| Newsgroups | org.kernel.vger.linux-next,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
--j8PgPfyjf0bLOa4n
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi all,
Today's linux-next merge of the sysctl tree got a conflict in:
kernel/time/jiffies.c
between commit:
842912dea6d51 ("sysctl: remove CONFIG_PROC_SYSCTL, it just mirrors CONFIG=
_SYSCTL")
=66rom the mm-nonmm-unstable tree and commit:
a3c70a5a9f944 ("sysctl: Generate do_proc_doulongvec_minmax with do_proc_d=
otypevec macro")
=66rom the sysctl tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --combined kernel/time/jiffies.c
index 84c6bd8e742e9,af529d558fa92..0000000000000
--- a/kernel/time/jiffies.c
+++ b/kernel/time/jiffies.c
@@@ -98,7 -98,7 +98,7 @@@ void __init register_refined_jiffies(lo
__clocksource_register(&refined_jiffies);
}
=20
-#ifdef CONFIG_PROC_SYSCTL
+#ifdef CONFIG_SYSCTL
static ulong mult_hz(const ulong val)
{
return val * HZ;
@@@ -185,7 -185,25 +185,7 @@@ static int do_proc_int_conv_ms_jiffies_
sysctl_u2k_int_conv_ms, sysctl_k2u_int_conv_ms);
}
=20
-static int sysctl_u2k_ulong_conv_ms(const ulong *u_ptr, ulong *k_ptr)
-{
- return proc_ulong_u2k_conv_uop(u_ptr, k_ptr, sysctl_msecs_to_jiffies);
-}
-
-static int sysctl_k2u_ulong_conv_ms(ulong *u_ptr, const ulong *k_ptr)
-{
- return proc_ulong_k2u_conv_kop(u_ptr, k_ptr, sysctl_jiffies_to_msecs);
-}
-
-static int do_proc_ulong_conv_ms_jiffies(bool *negp, ulong *u_ptr, ulong =
*k_ptr,
- int dir, const struct ctl_table *tbl)
-{
- return proc_ulong_conv(u_ptr, k_ptr, dir, tbl, false,
- sysctl_u2k_ulong_conv_ms, sysctl_k2u_ulong_conv_ms);
-}
-
-
-#else // CONFIG_PROC_SYSCTL
+#else // CONFIG_SYSCTL
static int do_proc_int_conv_jiffies(bool *negp, ulong *u_ptr, int *k_ptr,
int dir, const struct ctl_table *tbl)
{
@@@ -211,6 -229,12 +211,12 @@@ static int do_proc_int_conv_ms_jiffies_
{
return -ENOSYS;
}
+=20
+ static int do_proc_ulong_conv_ms_jiffies(bool *negp, ulong *u_ptr, ulong =
*k_ptr,
+ int dir, const struct ctl_table *tbl)
+ {
+ return -ENOSYS;
+ }
#endif
=20
/**
@@@ -309,8 -333,8 +315,8 @@@ int proc_dointvec_ms_jiffies_minmax(con
int proc_doulongvec_ms_jiffies_minmax(const struct ctl_table *table, int =
dir,
void *buffer, size_t *lenp, loff_t *ppos)
{
- return proc_doulongvec_minmax_conv(table, dir, buffer, lenp, ppos,
- HZ, 1000l);
+ return proc_doulongvec_conv(table, dir, buffer, lenp, ppos,
+ do_proc_ulong_conv_ms_jiffies);
}
EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
=20
--j8PgPfyjf0bLOa4n
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpo6WcACgkQJNaLcl1U
h9AeoAf+NCKdcHAcl6sE3YR1oSE1G6h4HISYhFK4w4JgKnBwxjHVxJ4yY7OvZu2J
sJ7zY5YkUdtVZzZozRgPEGuMPrnekZ6lwPhgZHeK9PrZKPWkMI27iLAuyLq1p0XM
EYnO5iDXlBjfQXOC0KlAZ4vzJxbs6gdDvlKWvE2/J0fk/wgrUZ6Xcw9DBB4q9Elu
mO5Q4YC1jipaCpzHkviUYM0h3aHKOWQSfscS7f/DLavTVMOZhFVCGvQqOEZYlQfQ
qhVbhR8vdTL22qGSaTShOcYmOIlYORRqWMLw39AsNIHQZ+0wdXaXmvVdPLZvD13y
888Sq8yR5kccqI1QBp+DM67AUqN9yA==
=qs59
-----END PGP SIGNATURE-----
--j8PgPfyjf0bLOa4n--