linux-next: build failure after merge of the driver-core tree
Subsystems (3)
Hi all,
After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
106 | .remove = dp_aux_ep_remove,
| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: note: (near initialization for 'dp_aux_bus_type.remove')
Caused by commit
aeb33699fc2c ("drm: Introduce the DP AUX bus")
from the drm tree interacting with commit
fc7a6209d571 ("bus: Make remove callback return void")
from the driver-core tree.
I applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Fri, 23 Jul 2021 14:58:25 +1000
Subject: [PATCH] fix for "drm: Introduce the DP AUX bus"
interaction with "bus: Make remove callback return void"
--- drivers/gpu/drm/drm_dp_aux_bus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/drm_dp_aux_bus.c +1 -4
@@ -67,9 +67,8 @@ static int dp_aux_ep_probe(struct device *dev)* * Calls through to the endpoint driver remove. * -* Return: 0 if no error or negative error code. */ -static int dp_aux_ep_remove (struct device *dev) +static void dp_aux_ep_remove (struct device *dev) {struct dp_aux_ep_driver *aux_ep_drv =to_dp_aux_ep_drv (dev->driver);struct dp_aux_ep_device *aux_ep =to_dp_aux_ep_dev (dev);
@@ -77,8 +76,6 @@ static int dp_aux_ep_remove(struct device *dev)if (aux_ep_drv->remove) aux_ep_drv->remove (aux_ep);dev_pm_domain_detach (dev, true); - -return 0 ; }/**
Signature · 5 lines
2.30.2 -- Cheers, Stephen Rothwell
Hello Stephen,
Quoted 49 lines · Stephen Rothwell
Hi all,
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
106 | .remove =dp_aux_ep_remove,| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: note: (near initialization for 'dp_aux_bus_type.remove')Caused by commit
aeb33699fc2c("drm: Introduce the DP AUX bus")from the drm tree interacting with commit
fc7a6209d571("bus: Make remove callback return void")from the driver-core tree.
I applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Fri, 23 Jul 2021 14:58:25 +1000
Subject: [PATCH] fix for "drm: Introduce the DP AUX bus"interaction with "bus: Make remove callback return void"
Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/drm_dp_aux_bus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/drm_dp_aux_bus.c +1
-2@@ -67,9 +67,8 @@ static int dp_aux_ep_probe(struct device *dev)* * Calls through to the endpoint driver remove. * -* Return: 0 if no error or negative error code. */ -static int dp_aux_ep_remove (struct device *dev) +static void dp_aux_ep_remove (struct device *dev) {struct dp_aux_ep_driver *aux_ep_drv =to_dp_aux_ep_drv (dev->driver);struct dp_aux_ep_device *aux_ep =to_dp_aux_ep_dev (dev);
drivers/gpu/drm/drm_dp_aux_bus.c static int dp_aux_ep_remove(struct device *dev) · line 79
Quoted 6 lines
drivers/gpu/drm/drm_dp_aux_bus.c +0
-2@@ -77,8 +76,6 @@ static int dp_aux_ep_remove(struct device *dev)if (aux_ep_drv->remove) aux_ep_drv->remove (aux_ep);dev_pm_domain_detach (dev, true); - -return 0 ; }
This looks right.
Greg provided a tag containing fc7a6209d571 ("bus: Make remove callback return void") at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/bus_remove_return_void-5.15
(see https://lore.kernel.org/lkml/[email protected]).
It would be great if this could be merged into the drm tree with the above diff squashed into the merge commit.
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |
Quoted 60 lines · Uwe Kleine-König
Quoted 47 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
106 | .remove =dp_aux_ep_remove,| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: note: (near initialization for 'dp_aux_bus_type.remove')Caused by commit
aeb33699fc2c("drm: Introduce the DP AUX bus")from the drm tree interacting with commit
fc7a6209d571("bus: Make remove callback return void")from the driver-core tree.
I applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Fri, 23 Jul 2021 14:58:25 +1000
Subject: [PATCH] fix for "drm: Introduce the DP AUX bus"interaction with "bus: Make remove callback return void"
Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/drm_dp_aux_bus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/drm_dp_aux_bus.c +1
-2@@ -67,9 +67,8 @@ static int dp_aux_ep_probe(struct device *dev)* * Calls through to the endpoint driver remove. * -* Return: 0 if no error or negative error code. */ -static int dp_aux_ep_remove (struct device *dev) +static void dp_aux_ep_remove (struct device *dev) {struct dp_aux_ep_driver *aux_ep_drv =to_dp_aux_ep_drv (dev->driver);struct dp_aux_ep_device *aux_ep =to_dp_aux_ep_dev (dev);drivers/gpu/drm/drm_dp_aux_bus.c static int dp_aux_ep_remove(struct device *dev) · line 79
Quoted 6 lines
drivers/gpu/drm/drm_dp_aux_bus.c +0
-2@@ -77,8 +76,6 @@ static int dp_aux_ep_remove(struct device *dev)if (aux_ep_drv->remove) aux_ep_drv->remove (aux_ep);dev_pm_domain_detach (dev, true); - -return 0 ; }This looks right.
Greg provided a tag containing
fc7a6209d571("bus: Make remove callback return void") at
Quoted 6 lines
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.gittags/bus_remove_return_void-5.15(see https://lore.kernel.org/lkml/[email protected]).
It would be great if this could be merged into the drm tree with the above diff squashed into the merge commit.
+1.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi,
Quoted 63 lines · Geert Uytterhoeven
Quoted 60 lines · Uwe Kleine-König
Quoted 47 lines · Stephen Rothwell
After merging the driver-core tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: error: initialization of 'void (*)(struct device *)' from incompatible pointer type 'int (*)(struct device *)' [-Werror=incompatible-pointer-types]
106 | .remove =dp_aux_ep_remove,| ^~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_dp_aux_bus.c:106:13: note: (near initialization for 'dp_aux_bus_type.remove')Caused by commit
aeb33699fc2c("drm: Introduce the DP AUX bus")from the drm tree interacting with commit
fc7a6209d571("bus: Make remove callback return void")from the driver-core tree.
I applied the following merge fix patch.
From: Stephen Rothwell <[email protected]>
Date: Fri, 23 Jul 2021 14:58:25 +1000
Subject: [PATCH] fix for "drm: Introduce the DP AUX bus"interaction with "bus: Make remove callback return void"
Signed-off-by Stephen Rothwell <[email protected]>--- drivers/gpu/drm/drm_dp_aux_bus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)drivers/gpu/drm/drm_dp_aux_bus.c +1
-2@@ -67,9 +67,8 @@ static int dp_aux_ep_probe(struct device *dev)* * Calls through to the endpoint driver remove. * -* Return: 0 if no error or negative error code. */ -static int dp_aux_ep_remove (struct device *dev) +static void dp_aux_ep_remove (struct device *dev) {struct dp_aux_ep_driver *aux_ep_drv =to_dp_aux_ep_drv (dev->driver);struct dp_aux_ep_device *aux_ep =to_dp_aux_ep_dev (dev);drivers/gpu/drm/drm_dp_aux_bus.c static int dp_aux_ep_remove(struct device *dev) · line 79
Quoted 6 lines
drivers/gpu/drm/drm_dp_aux_bus.c +0
-2@@ -77,8 +76,6 @@ static int dp_aux_ep_remove(struct device *dev)if (aux_ep_drv->remove) aux_ep_drv->remove (aux_ep);dev_pm_domain_detach (dev, true); - -return 0 ; }This looks right.
Greg provided a tag containing
fc7a6209d571("bus: Make remove callback return void") at
Quoted 8 lines
Quoted 6 lines
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.gittags/bus_remove_return_void-5.15(see https://lore.kernel.org/lkml/[email protected]).
It would be great if this could be merged into the drm tree with the above diff squashed into the merge commit.
+1.
I looked at trying to do this but I think it's beyond the scope of privileges that I'm granted as a drm_misc committer (not a drm_misc maintainer). Adding the official maintainers [1]. Maarten/Maxime/Thomas would this be something you could do?
[1] https://drm.pages.freedesktop.org/maintainer-tools/repositories.html
-Doug