Skip to contentSkip to conversation

linux-next: manual merge of the fs-next tree with the mm-nonmm-unstable tree

PATCH Mark Brown 3 participants 3 messages Nov 17 – Nov 23

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

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

fs/proc/kcore.c

between commit:

6b20f3da3436e ("proc/kcore: allow disabling /proc/kcore at boot")

from the mm-nonmm-unstable tree and commit:

79011a80f0646 ("proc: give kcore, kmsg, the kpage files and profile their own file_operations")

from the fs-next 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.

fs/proc/kcore.c +0 -0
diff --cc fs/proc/kcore.c
index 4251a9ef868b6,ab7b74efe9754..0000000000000
@@@ -723,20 -722,9 +723,20 @@@ static void __init add_modules_range(vo
  }
  #endif
  
 +static int __init parse_kcore(char *str)
 +{
 +	return kstrtobool(str, &kcore_enabled);
 +}
 +early_param("kcore", parse_kcore);
 +
  static int __init proc_kcore_init(void)
  {
 +	if (!kcore_enabled) {
 +		pr_info("/proc/kcore disabled on command line\n");
 +		return 0;
 +	}
 +
- 	proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &kcore_proc_ops);
+ 	proc_root_kcore = proc_create_fops("kcore", S_IRUSR, NULL, &kcore_fops);
  	if (!proc_root_kcore) {
  		pr_err("couldn't create /proc/kcore\n");
  		return 0; /* Always returns 0. */
#1 lore raw
Quoted 6 lines · On Tue, 17 Nov 2026 16:16:50 +0000 Mark Brown <[email protected]> wrote:

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

fs/proc/kcore.c

between commit:

Quoted 7 lines

6b20f3da3436e ("proc/kcore: allow disabling /proc/kcore at boot")

from the mm-nonmm-unstable tree and commit:

79011a80f0646 ("proc: give kcore, kmsg, the kpage files and profile their own file_operations")

from the fs-next tree.

Thanks. I'll drop "proc/kcore: allow disabling /proc/kcore at boot".

Chris, could you please redo? Against fs-next, I guess. With the ro_after_init thing that Kees suggested?