linux-next: manual merge of the tip tree with the s390 tree

Stephen Rothwell posted 1 patch 5 months, 3 weeks ago
linux-next: manual merge of the tip tree with the s390 tree
Posted by Stephen Rothwell 5 months, 3 weeks ago
Hi all,

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

  kernel/sysctl.c

between commit:

  20de8f8d3178 ("s390: Move s390 sysctls into their own file under arch/s390")

from the s390 tree and commit:

  c305a4e98378 ("x86: Move sysctls into arch/x86")

from the tip 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 kernel/sysctl.c
index 6c70fb3b2376,4ebe6136b08d..000000000000
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@@ -1888,15 -1843,15 +1834,6 @@@ static const struct ctl_table kern_tabl
  		.proc_handler	= proc_dointvec,
  	},
  #endif
- #if	defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86)
 -#if defined(CONFIG_S390) && defined(CONFIG_SMP)
--	{
- 		.procname	= "acpi_video_flags",
- 		.data		= &acpi_realmode_flags,
- 		.maxlen		= sizeof (unsigned long),
 -		.procname	= "spin_retry",
 -		.data		= &spin_retry,
 -		.maxlen		= sizeof (int),
--		.mode		= 0644,
- 		.proc_handler	= proc_doulongvec_minmax,
 -		.proc_handler	= proc_dointvec,
--	},
--#endif
  #ifdef CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN
  	{
  		.procname	= "ignore-unaligned-usertrap",
Re: linux-next: manual merge of the tip tree with the s390 tree
Posted by Stephen Rothwell 5 months, 2 weeks ago
Hi all,

On Wed, 19 Mar 2025 15:54:10 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the tip tree got a conflict in:
> 
>   kernel/sysctl.c
> 
> between commit:
> 
>   20de8f8d3178 ("s390: Move s390 sysctls into their own file under arch/s390")
> 
> from the s390 tree and commit:
> 
>   c305a4e98378 ("x86: Move sysctls into arch/x86")
> 
> from the tip 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 --cc kernel/sysctl.c
> index 6c70fb3b2376,4ebe6136b08d..000000000000
> --- a/kernel/sysctl.c
> +++ b/kernel/sysctl.c
> @@@ -1888,15 -1843,15 +1834,6 @@@ static const struct ctl_table kern_tabl
>   		.proc_handler	= proc_dointvec,
>   	},
>   #endif
> - #if	defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86)
>  -#if defined(CONFIG_S390) && defined(CONFIG_SMP)
> --	{
> - 		.procname	= "acpi_video_flags",
> - 		.data		= &acpi_realmode_flags,
> - 		.maxlen		= sizeof (unsigned long),
>  -		.procname	= "spin_retry",
>  -		.data		= &spin_retry,
>  -		.maxlen		= sizeof (int),
> --		.mode		= 0644,
> - 		.proc_handler	= proc_doulongvec_minmax,
>  -		.proc_handler	= proc_dointvec,
> --	},
> --#endif
>   #ifdef CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN
>   	{
>   		.procname	= "ignore-unaligned-usertrap",

This is now a conflict between the s390 tree and Linus' tree.

-- 
Cheers,
Stephen Rothwell
Re: linux-next: manual merge of the tip tree with the s390 tree
Posted by Ingo Molnar 5 months, 3 weeks ago
* Stephen Rothwell <sfr@canb.auug.org.au> wrote:

> Hi all,
> 
> Today's linux-next merge of the tip tree got a conflict in:
> 
>   kernel/sysctl.c
> 
> between commit:
> 
>   20de8f8d3178 ("s390: Move s390 sysctls into their own file under arch/s390")
> 
> from the s390 tree and commit:
> 
>   c305a4e98378 ("x86: Move sysctls into arch/x86")
> 
> from the tip 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.

Thank you Stephen!

	Ingo
Re: linux-next: manual merge of the tip tree with the s390 tree
Posted by Joel Granados 5 months, 2 weeks ago
On Wed, Mar 19, 2025 at 08:50:44PM +0100, Ingo Molnar wrote:
> 
> * Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> 
> > Hi all,
> > 
> > Today's linux-next merge of the tip tree got a conflict in:
> > 
> >   kernel/sysctl.c
> > 
> > between commit:
> > 
> >   20de8f8d3178 ("s390: Move s390 sysctls into their own file under arch/s390")
> > 
> > from the s390 tree and commit:
> > 
> >   c305a4e98378 ("x86: Move sysctls into arch/x86")
> > 
> > from the tip 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.
> 
> Thank you Stephen!
Indeed. Thanks!!!

Just a quick comment on this conflict:
1. The conflict is caused because "acpi_video_flags" is after
   "spin_retry" in the kern_table array. The solution (Which I see in
   next-20250328) is to remove them both from kernel/sysctl.c

2. This is the exact reason why we are moving these out of
   kernel/sysctl.c. It is too easy to touch the same region even if they
   are from different architectures.

Best

-- 

Joel Granados