linux-next: build failure after merge of the i2c tree
Hi all,
After merging the i2c tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/clk/clk-versaclock7.c:1304:19: error: initialization of 'void (*)(struct i2c_client *)' from incompatible pointer type 'int (*)(struct i2c_client *)' [-Werror=incompatible-pointer-types]
1304 | .remove = vc7_remove,
| ^~~~~~~~~~
drivers/clk/clk-versaclock7.c:1304:19: note: (near initialization for 'vc7_i2c_driver.remove')
Caused by commit
48c5e98fedd9 ("clk: Renesas versaclock7 ccf device driver")
from the clk tree interacting with commit
ed5c2f5fd10d ("i2c: Make remove callback return void")
from the i2c tree.
I have applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Tue, 4 Oct 2022 11:13:45 +1100
Subject: [PATCH] clk: fix up for "i2c: Make remove callback return void"
--- drivers/clk/clk-versaclock7.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clk/clk-versaclock7.c +1 -3
@@ -1235,14 +1235,12 @@ static int vc7_probe(struct i2c_client *client)return ret; } -static int vc7_remove (struct i2c_client *client) +static void vc7_remove (struct i2c_client *client) {struct vc7_driver_data *vc7 =i2c_get_clientdata (client);of_clk_del_provider (client->dev.of_node);clk_unregister_fixed_rate (vc7->clk_apll.clk); - -return 0 ; }static bool vc7_volatile_reg (struct device *dev,unsigned int reg)
Signature · 5 lines
2.35.1 -- Cheers, Stephen Rothwell
Hello clk guys,
Quoted 12 lines · Stephen Rothwell
Hi all,
After merging the i2c tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/clk/clk-versaclock7.c:1304:19: error: initialization of 'void (*)(structi2c_client*)' from incompatible pointer type 'int (*)(structi2c_client*)' [-Werror=incompatible-pointer-types]
1304 | .remove =vc7_remove,| ^~~~~~~~~~
drivers/clk/clk-versaclock7.c:1304:19: note: (near initialization for 'vc7_i2c_driver.remove')Caused by commit
Quoted 7 lines
48c5e98fedd9("clk: Renesas versaclock7 ccf device driver")from the clk tree interacting with commit
ed5c2f5fd10d("i2c: Make remove callback return void")from the i2c tree.
You might want to pull
https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/make_remove_callback_void-immutable
to fix this in your tree.
Quoted 19 lines
I have applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Tue, 4 Oct 2022 11:13:45 +1100
Subject: [PATCH] clk: fix up for "i2c: Make remove callback return void"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/clk/clk-versaclock7.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/clk/clk-versaclock7.c +0
-0@@ -1235,14 +1235,12 @@ static int vc7_probe(struct i2c_client *client)return ret; }
drivers/clk/clk-versaclock7.c static int vc7_probe(struct i2c_client *client) · line 1244
Quoted 10 lines
drivers/clk/clk-versaclock7.c +1
-3-static int vc7_remove (struct i2c_client *client) +static void vc7_remove (struct i2c_client *client) {struct vc7_driver_data *vc7 =i2c_get_clientdata (client);of_clk_del_provider (client->dev.of_node);clk_unregister_fixed_rate (vc7->clk_apll.clk); - -return 0 ; }
Looks good.
Thanks
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Hi all,
Quoted 52 lines · On Tue, 4 Oct 2022 11:20:59 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the i2c tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/clk/clk-versaclock7.c:1304:19: error: initialization of 'void (*)(structi2c_client*)' from incompatible pointer type 'int (*)(structi2c_client*)' [-Werror=incompatible-pointer-types]
1304 | .remove =vc7_remove,| ^~~~~~~~~~
drivers/clk/clk-versaclock7.c:1304:19: note: (near initialization for 'vc7_i2c_driver.remove')Caused by commit
48c5e98fedd9("clk: Renesas versaclock7 ccf device driver")from the clk tree interacting with commit
ed5c2f5fd10d("i2c: Make remove callback return void")from the i2c tree.
I have applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Tue, 4 Oct 2022 11:13:45 +1100
Subject: [PATCH] clk: fix up for "i2c: Make remove callback return void"Signed-off-by Stephen Rothwell <[email protected]>--- drivers/clk/clk-versaclock7.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/clk/clk-versaclock7.c +1
-3@@ -1235,14 +1235,12 @@ static int vc7_probe(struct i2c_client *client)return ret; } -static int vc7_remove (struct i2c_client *client) +static void vc7_remove (struct i2c_client *client) {struct vc7_driver_data *vc7 =i2c_get_clientdata (client);of_clk_del_provider (client->dev.of_node);clk_unregister_fixed_rate (vc7->clk_apll.clk); - -return 0 ; }static bool vc7_volatile_reg (struct device *dev,unsigned int reg)Signature · 1 line
2.35.1
I have applied this patch to the merge of the clk tree today (since Linus has merged the i2c tree).
Signature · 2 lines
Cheers, Stephen Rothwell