All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-next: manual merge of the net-next tree with the i2c tree
@ 2022-09-27 13:02 broonie
  2022-09-27 14:32 ` Uwe Kleine-König
  0 siblings, 1 reply; 2+ messages in thread
From: broonie @ 2022-09-27 13:02 UTC (permalink / raw)
  To: David Miller, Networking
  Cc: Jakub Kicinski, Linux Kernel Mailing List,
	Linux Next Mailing List, Uwe Kleine-König, Wolfram Sang,
	Yang Yingliang

Hi all,

Today's linux-next merge of the net-next tree got conflicts in:

  drivers/net/dsa/lan9303_i2c.c
  drivers/net/dsa/microchip/ksz9477_i2c.c
  drivers/net/dsa/xrs700x/xrs700x_i2c.c

between commit:

  ed5c2f5fd10dd ("i2c: Make remove callback return void")

from the i2c tree and commits:

  db5d451c4640a ("net: dsa: lan9303: remove unnecessary i2c_set_clientdata()")
  008971adb95d3 ("net: dsa: microchip: ksz9477: remove unnecessary i2c_set_clientdata()")
  6387bf7c390a1 ("net: dsa: xrs700x: remove unnecessary i2c_set_clientdata()")

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

diff --cc drivers/net/dsa/lan9303_i2c.c
index b25e91b26d991,79be5fc044bd4..0000000000000
--- a/drivers/net/dsa/lan9303_i2c.c
+++ b/drivers/net/dsa/lan9303_i2c.c
@@@ -70,11 -70,11 +70,9 @@@ static void lan9303_i2c_remove(struct i
  	struct lan9303_i2c *sw_dev = i2c_get_clientdata(client);
  
  	if (!sw_dev)
 -		return 0;
 +		return;
  
  	lan9303_remove(&sw_dev->chip);
--
- 	i2c_set_clientdata(client, NULL);
 -	return 0;
  }
  
  static void lan9303_i2c_shutdown(struct i2c_client *client)
diff --cc drivers/net/dsa/microchip/ksz9477_i2c.c
index 4a719ab8aa89c,e111756f64735..0000000000000
--- a/drivers/net/dsa/microchip/ksz9477_i2c.c
+++ b/drivers/net/dsa/microchip/ksz9477_i2c.c
@@@ -58,8 -58,8 +58,6 @@@ static void ksz9477_i2c_remove(struct i
  
  	if (dev)
  		ksz_switch_remove(dev);
--
- 	i2c_set_clientdata(i2c, NULL);
 -	return 0;
  }
  
  static void ksz9477_i2c_shutdown(struct i2c_client *i2c)
diff --cc drivers/net/dsa/xrs700x/xrs700x_i2c.c
index bbaf5a3fbf000,cd533b9e17eca..0000000000000
--- a/drivers/net/dsa/xrs700x/xrs700x_i2c.c
+++ b/drivers/net/dsa/xrs700x/xrs700x_i2c.c
@@@ -110,11 -110,11 +110,9 @@@ static void xrs700x_i2c_remove(struct i
  	struct xrs700x *priv = i2c_get_clientdata(i2c);
  
  	if (!priv)
 -		return 0;
 +		return;
  
  	xrs700x_switch_remove(priv);
--
- 	i2c_set_clientdata(i2c, NULL);
 -	return 0;
  }
  
  static void xrs700x_i2c_shutdown(struct i2c_client *i2c)

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

* Re: linux-next: manual merge of the net-next tree with the i2c tree
  2022-09-27 13:02 linux-next: manual merge of the net-next tree with the i2c tree broonie
@ 2022-09-27 14:32 ` Uwe Kleine-König
  0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2022-09-27 14:32 UTC (permalink / raw)
  To: David Miller
  Cc: broonie, Networking, Jakub Kicinski, Linux Kernel Mailing List,
	Linux Next Mailing List, Wolfram Sang, Yang Yingliang

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

Hello,

On Tue, Sep 27, 2022 at 02:02:06PM +0100, broonie@kernel.org wrote:
> Hi all,
> 
> Today's linux-next merge of the net-next tree got conflicts in:
> 
>   drivers/net/dsa/lan9303_i2c.c
>   drivers/net/dsa/microchip/ksz9477_i2c.c
>   drivers/net/dsa/xrs700x/xrs700x_i2c.c
> 
> between commit:
> 
>   ed5c2f5fd10dd ("i2c: Make remove callback return void")
> 
> from the i2c tree and commits:
> 
>   db5d451c4640a ("net: dsa: lan9303: remove unnecessary i2c_set_clientdata()")
>   008971adb95d3 ("net: dsa: microchip: ksz9477: remove unnecessary i2c_set_clientdata()")
>   6387bf7c390a1 ("net: dsa: xrs700x: remove unnecessary i2c_set_clientdata()")
> 
> from the net-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.
> 
> diff --cc drivers/net/dsa/lan9303_i2c.c
> index b25e91b26d991,79be5fc044bd4..0000000000000
> --- a/drivers/net/dsa/lan9303_i2c.c
> +++ b/drivers/net/dsa/lan9303_i2c.c
> @@@ -70,11 -70,11 +70,9 @@@ static void lan9303_i2c_remove(struct i
>   	struct lan9303_i2c *sw_dev = i2c_get_clientdata(client);
>   
>   	if (!sw_dev)
>  -		return 0;
>  +		return;
>   
>   	lan9303_remove(&sw_dev->chip);
> --
> - 	i2c_set_clientdata(client, NULL);
>  -	return 0;
>   }
>   
>   static void lan9303_i2c_shutdown(struct i2c_client *client)
> diff --cc drivers/net/dsa/microchip/ksz9477_i2c.c
> index 4a719ab8aa89c,e111756f64735..0000000000000
> --- a/drivers/net/dsa/microchip/ksz9477_i2c.c
> +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c
> @@@ -58,8 -58,8 +58,6 @@@ static void ksz9477_i2c_remove(struct i
>   
>   	if (dev)
>   		ksz_switch_remove(dev);
> --
> - 	i2c_set_clientdata(i2c, NULL);
>  -	return 0;
>   }
>   
>   static void ksz9477_i2c_shutdown(struct i2c_client *i2c)
> diff --cc drivers/net/dsa/xrs700x/xrs700x_i2c.c
> index bbaf5a3fbf000,cd533b9e17eca..0000000000000
> --- a/drivers/net/dsa/xrs700x/xrs700x_i2c.c
> +++ b/drivers/net/dsa/xrs700x/xrs700x_i2c.c
> @@@ -110,11 -110,11 +110,9 @@@ static void xrs700x_i2c_remove(struct i
>   	struct xrs700x *priv = i2c_get_clientdata(i2c);
>   
>   	if (!priv)
>  -		return 0;
>  +		return;
>   
>   	xrs700x_switch_remove(priv);
> --
> - 	i2c_set_clientdata(i2c, NULL);
>  -	return 0;
>   }
>   
>   static void xrs700x_i2c_shutdown(struct i2c_client *i2c)

To fix that issue before sending a PR to Linus you might want to pull

	https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux i2c/make_remove_callback_void-immutable

into your tree.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

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

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

end of thread, other threads:[~2022-09-27 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27 13:02 linux-next: manual merge of the net-next tree with the i2c tree broonie
2022-09-27 14:32 ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.