linux-next: build failure after merge of the input tree
Subsystems (3)
Hi all,
After merging the input tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/input/misc/ibm-panel.c:195:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
195 | .remove = ibm_panel_remove,
| ^~~~~~~~~~~~~~~~
drivers/input/misc/ibm-panel.c:195:19: note: (near initialization for 'ibm_panel_driver.remove')
Caused by commit
95331e91e9da ("Input: Add IBM Operation Panel driver")
interacting with commit
ed5c2f5fd10d ("i2c: Make remove callback return void")
from v6.0-rc1.
I have applied the following merge fix patch for today:
From: Stephen Rothwell <[email protected]>
Date: Wed, 17 Aug 2022 09:54:11 +1000
Subject: [PATCH] Input: fix up for "i2c: Make remove callback return void"
--- drivers/input/misc/ibm-panel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/input/misc/ibm-panel.c +1 -3
@@ -174,11 +174,9 @@ static int ibm_panel_probe(struct i2c_client *client,return 0 ; } -static int ibm_panel_remove (struct i2c_client *client) +static void ibm_panel_remove (struct i2c_client *client) {i2c_slave_unregister (client); - -return 0 ; }static const struct of_device_id ibm_panel_match[] = {
Signature · 5 lines
2.35.1 -- Cheers, Stephen Rothwell
Hi all,
Quoted 11 lines · On Wed, 17 Aug 2022 10:00:07 +1000 Stephen Rothwell <[email protected]>…
After merging the input tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/input/misc/ibm-panel.c:195:19: error: initialization of 'void (*)(structi2c_client*)' from incompatible pointer type 'int (*)(structi2c_client*)' [-Werror=incompatible-pointer-types]
195 | .remove =ibm_panel_remove,| ^~~~~~~~~~~~~~~~
drivers/input/misc/ibm-panel.c:195:19: note: (near initialization for 'ibm_panel_driver.remove')Caused by commit
Quoted 7 lines
95331e91e9da("Input: Add IBM Operation Panel driver")interacting with commit
ed5c2f5fd10d("i2c: Make remove callback return void")from v6.0-rc1.
Actually it is from the i2c tree and not in Linus' tree. Sorry about that.
Signature · 2 lines
Cheers, Stephen Rothwell
Hello,
Quoted 10 lines · Stephen Rothwell
After merging the input tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/input/misc/ibm-panel.c:195:19: error: initialization of 'void (*)(structi2c_client*)' from incompatible pointer type 'int (*)(structi2c_client*)' [-Werror=incompatible-pointer-types]
195 | .remove =ibm_panel_remove,| ^~~~~~~~~~~~~~~~
drivers/input/misc/ibm-panel.c:195:19: note: (near initialization for 'ibm_panel_driver.remove')Caused by commit
Quoted 7 lines
95331e91e9da("Input: Add IBM Operation Panel driver")interacting with commit
ed5c2f5fd10d("i2c: Make remove callback return void")from v6.0-rc1.
I was a bit irritated by the "from v6.0-rc1" part and I feared that I missed a driver in the conversion of the remove callback. But both commits happen after v6.0-rc1, so everything is fine and as expected.
Quoted 16 lines
I have applied the following merge fix patch for today:
From: Stephen Rothwell <[email protected]>
Date: Wed, 17 Aug 2022 09:54:11 +1000
Subject: [PATCH] Input: fix up for "i2c: Make remove callback return void"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/input/misc/ibm-panel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/input/misc/ibm-panel.c +0
-0
drivers/input/misc/ibm-panel.c static int ibm_panel_probe(struct i2c_client *client, · line 180
Quoted 10 lines
drivers/input/misc/ibm-panel.c +1
-3@@ -174,11 +174,9 @@ static int ibm_panel_probe(struct i2c_client *client,return 0 ; } -static int ibm_panel_remove (struct i2c_client *client) +static void ibm_panel_remove (struct i2c_client *client) {i2c_slave_unregister (client); - -return 0 ; }
That looks right. Wolfram created a tag for the conversion that can be pulled into the input tree at
https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/make_remove_callback_void-immutable
.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |