linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the extcon tree with the driver-core tree
@ 2023-03-20  0:58 Stephen Rothwell
  2023-03-20 12:15 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2023-03-20  0:58 UTC (permalink / raw)
  To: Chanwoo Choi, Greg KH
  Cc: Bumwoo Lee, Greg Kroah-Hartman, Linux Kernel Mailing List,
	Linux Next Mailing List

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

Hi all,

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

  drivers/extcon/extcon.c

between commit:

  1aaba11da9aa ("driver core: class: remove module * from class_create()")

from the driver-core tree and commit:

  6384c02f33a9 ("extcon: Remove redundant null checking for class")

from the extcon 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/extcon/extcon.c
index d43ba8e7260d,adcf01132f70..000000000000
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@@ -1012,12 -1012,13 +1012,13 @@@ ATTRIBUTE_GROUPS(extcon)
  
  static int create_extcon_class(void)
  {
- 	if (!extcon_class) {
- 		extcon_class = class_create("extcon");
- 		if (IS_ERR(extcon_class))
- 			return PTR_ERR(extcon_class);
- 		extcon_class->dev_groups = extcon_groups;
- 	}
+ 	if (extcon_class)
+ 		return 0;
+ 
 -	extcon_class = class_create(THIS_MODULE, "extcon");
++	extcon_class = class_create("extcon");
+ 	if (IS_ERR(extcon_class))
+ 		return PTR_ERR(extcon_class);
+ 	extcon_class->dev_groups = extcon_groups;
  
  	return 0;
  }

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: linux-next: manual merge of the extcon tree with the driver-core tree
  2023-03-20  0:58 linux-next: manual merge of the extcon tree with the driver-core tree Stephen Rothwell
@ 2023-03-20 12:15 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2023-03-20 12:15 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Chanwoo Choi, Bumwoo Lee, Linux Kernel Mailing List,
	Linux Next Mailing List

On Mon, Mar 20, 2023 at 11:58:39AM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> Today's linux-next merge of the extcon tree got a conflict in:
> 
>   drivers/extcon/extcon.c
> 
> between commit:
> 
>   1aaba11da9aa ("driver core: class: remove module * from class_create()")
> 
> from the driver-core tree and commit:
> 
>   6384c02f33a9 ("extcon: Remove redundant null checking for class")
> 
> from the extcon 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/extcon/extcon.c
> index d43ba8e7260d,adcf01132f70..000000000000
> --- a/drivers/extcon/extcon.c
> +++ b/drivers/extcon/extcon.c
> @@@ -1012,12 -1012,13 +1012,13 @@@ ATTRIBUTE_GROUPS(extcon)
>   
>   static int create_extcon_class(void)
>   {
> - 	if (!extcon_class) {
> - 		extcon_class = class_create("extcon");
> - 		if (IS_ERR(extcon_class))
> - 			return PTR_ERR(extcon_class);
> - 		extcon_class->dev_groups = extcon_groups;
> - 	}
> + 	if (extcon_class)
> + 		return 0;
> + 
>  -	extcon_class = class_create(THIS_MODULE, "extcon");
> ++	extcon_class = class_create("extcon");
> + 	if (IS_ERR(extcon_class))
> + 		return PTR_ERR(extcon_class);
> + 	extcon_class->dev_groups = extcon_groups;
>   
>   	return 0;
>   }

Thanks, the merge resolution looks good to me.

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-20 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20  0:58 linux-next: manual merge of the extcon tree with the driver-core tree Stephen Rothwell
2023-03-20 12:15 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).