lkml.org 
[lkml]   [2022]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: manual merge of the akpm tree with the random tree
Hi all,

Today's linux-next merge of the akpm tree got a conflict in:

drivers/char/random.c

between commit:

b48e412a0b73 ("random: selectively clang-format where it makes sense")

from the random tree and patch:

"random: move the random sysctl declarations to its own file"

from the akpm 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.

--
Cheers,
Stephen Rothwell

diff --cc drivers/char/random.c
index b04664fa61a2,2ce43609dbc8..000000000000
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@@ -2055,7 -2076,18 +2054,18 @@@ static struct ctl_table random_table[]
#endif
{ }
};
+
+ /*
+ * rand_initialize() is called before sysctl_init(),
+ * so we cannot call register_sysctl_init() in rand_initialize()
+ */
+ static int __init random_sysctls_init(void)
+ {
+ register_sysctl_init("kernel/random", random_table);
+ return 0;
+ }
+ device_initcall(random_sysctls_init);
-#endif /* CONFIG_SYSCTL */
+#endif /* CONFIG_SYSCTL */

struct batched_entropy {
union {
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-01-18 02:52    [W:0.036 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site