linux-next: build failure after merge of the usb tree
Subsystems (4)
Hi all,
After merging the usb tree, today's linux-next build (arm multi_v7_defconfig) failed like this:
drivers/phy/tegra/xusb.c: In function 'tegra_xusb_setup_usb_role_switch':drivers/phy/tegra/xusb.c:641:10: error: initialization of 'int (*)(struct usb_role_switch *, enum usb_role)' from incompatible pointer type 'int (*)(struct device *, enum usb_role)' [-Werror=incompatible-pointer-types]
641 | .set = tegra_xusb_role_sw_set,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/phy/tegra/xusb.c:641:10: note: (near initialization for 'role_sx_desc.set')
Caused by commit
bce3052f0c16 ("usb: roles: Provide the switch drivers handle to the switch in the API")
interacting with commit
5a00c7c7604f ("phy: tegra: xusb: Add usb-role-switch support")
from the tegra tree.
I have added this merge fix patch (which may need more work):
From: Stephen Rothwell <[email protected]>
Date: Mon, 16 Mar 2020 14:04:20 +1100
Subject: [PATCH] phy: tegra: fix up for set_role API change
--- drivers/phy/tegra/xusb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/phy/tegra/xusb.c +4 -3
@@ -596,11 +596,12 @@ static void tegra_xusb_usb_phy_work(struct work_struct *work)atomic_notifier_call_chain (&port->usb_phy.notifier,0 , &port->usb_phy); } -static int tegra_xusb_role_sw_set (struct device *dev,enum usb_role role) +static int tegra_xusb_role_sw_set (struct usb_role_switch *sw, +enum usb_role role) { -struct tegra_xusb_port *port =dev_get_drvdata (dev); +struct tegra_xusb_port *port =usb_role_switch_get_drvdata (sw); -dev_dbg (dev,"%s(): role %s\n" , __func__, usb_roles[role]); +dev_dbg (&port->dev,"%s(): role %s\n" , __func__, usb_roles[role]);schedule_work (&port->usb_phy_work);
Signature · 5 lines
2.25.0 -- Cheers, Stephen Rothwell
Quoted 54 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/phy/tegra/xusb.c: In function 'tegra_xusb_setup_usb_role_switch':drivers/phy/tegra/xusb.c:641:10: error: initialization of 'int (*)(structusb_role_switch*, enumusb_role)' from incompatible pointer type 'int (*)(struct device *, enumusb_role)' [-Werror=incompatible-pointer-types]
641 | .set =tegra_xusb_role_sw_set,| ^~~~~~~~~~~~~~~~~~~~~~
drivers/phy/tegra/xusb.c:641:10: note: (near initialization for 'role_sx_desc.set')Caused by commit
bce3052f0c16("usb: roles: Provide the switch drivers handle to the switch in the API")interacting with commit
5a00c7c7604f("phy: tegra: xusb: Add usb-role-switch support")from the tegra tree.
I have added this merge fix patch (which may need more work):
From: Stephen Rothwell <[email protected]>
Date: Mon, 16 Mar 2020 14:04:20 +1100
Subject: [PATCH] phy: tegra: fix up forset_roleAPI changeSigned-off-by Stephen Rothwell <[email protected]>--- drivers/phy/tegra/xusb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/phy/tegra/xusb.c +4
-3@@ -596,11 +596,12 @@ static void tegra_xusb_usb_phy_work(struct work_struct *work)atomic_notifier_call_chain (&port->usb_phy.notifier,0 , &port->usb_phy); } -static int tegra_xusb_role_sw_set (struct device *dev,enum usb_role role) +static int tegra_xusb_role_sw_set (struct usb_role_switch *sw, +enum usb_role role) { -struct tegra_xusb_port *port =dev_get_drvdata (dev); +struct tegra_xusb_port *port =usb_role_switch_get_drvdata (sw); -dev_dbg (dev,"%s(): role %s\n" , __func__, usb_roles[role]); +dev_dbg (&port->dev,"%s(): role %s\n" , __func__, usb_roles[role]);schedule_work (&port->usb_phy_work);Signature · 1 line
2.25.0
I can rebase the branch that contains this commit on top of Greg's USB tree. These are a dependency for the UDC and host driver changes that I have sent as a pull request to Greg, so this should all work out nicely.
Greg, I recall that you've said in the past that you don't rebase your trees. Is that still the case for the USB tree? Do you have a preference what to base my branch on? The earliest of your USB tree that contains all patches needed to make this compile? Or the latest?
Thierry
Quoted 51 lines · Thierry Reding
Quoted 50 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/phy/tegra/xusb.c: In function 'tegra_xusb_setup_usb_role_switch':drivers/phy/tegra/xusb.c:641:10: error: initialization of 'int (*)(structusb_role_switch*, enumusb_role)' from incompatible pointer type 'int (*)(struct device *, enumusb_role)' [-Werror=incompatible-pointer-types]
641 | .set =tegra_xusb_role_sw_set,| ^~~~~~~~~~~~~~~~~~~~~~
drivers/phy/tegra/xusb.c:641:10: note: (near initialization for 'role_sx_desc.set')Caused by commit
bce3052f0c16("usb: roles: Provide the switch drivers handle to the switch in the API")interacting with commit
5a00c7c7604f("phy: tegra: xusb: Add usb-role-switch support")from the tegra tree.
I have added this merge fix patch (which may need more work):
From: Stephen Rothwell <[email protected]>
Date: Mon, 16 Mar 2020 14:04:20 +1100
Subject: [PATCH] phy: tegra: fix up forset_roleAPI changeSigned-off-by Stephen Rothwell <[email protected]>--- drivers/phy/tegra/xusb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/phy/tegra/xusb.c +4
-3@@ -596,11 +596,12 @@ static void tegra_xusb_usb_phy_work(struct work_struct *work)atomic_notifier_call_chain (&port->usb_phy.notifier,0 , &port->usb_phy); } -static int tegra_xusb_role_sw_set (struct device *dev,enum usb_role role) +static int tegra_xusb_role_sw_set (struct usb_role_switch *sw, +enum usb_role role) { -struct tegra_xusb_port *port =dev_get_drvdata (dev); +struct tegra_xusb_port *port =usb_role_switch_get_drvdata (sw); -dev_dbg (dev,"%s(): role %s\n" , __func__, usb_roles[role]); +dev_dbg (&port->dev,"%s(): role %s\n" , __func__, usb_roles[role]);
Quoted 8 lines
Quoted 4 lines
drivers/phy/tegra/xusb.c +0
-0schedule_work (&port->usb_phy_work);Signature · 1 line
2.25.0I can rebase the branch that contains this commit on top of Greg's USB tree. These are a dependency for the UDC and host driver changes that I have sent as a pull request to Greg, so this should all work out nicely.
Ok, should I take your pull request then, or not?
Quoted 4 lines
Greg, I recall that you've said in the past that you don't rebase your trees. Is that still the case for the USB tree? Do you have a preference what to base my branch on? The earliest of your USB tree that contains all patches needed to make this compile? Or the latest?
Yes, I do not rebase my tree. Please work off of the usb-next branch, and you can send me a pull request based anywhere, it should work just fine :)
thanks,
greg k-h
Quoted 54 lines · Greg KH
Quoted 53 lines · Thierry Reding
Quoted 52 lines · Stephen Rothwell
Hi all,
After merging the usb tree, today's linux-next build (arm
multi_v7_defconfig) failed like this:
drivers/phy/tegra/xusb.c: In function 'tegra_xusb_setup_usb_role_switch':drivers/phy/tegra/xusb.c:641:10: error: initialization of 'int (*)(structusb_role_switch*, enumusb_role)' from incompatible pointer type 'int (*)(struct device *, enumusb_role)' [-Werror=incompatible-pointer-types]
641 | .set =tegra_xusb_role_sw_set,| ^~~~~~~~~~~~~~~~~~~~~~
drivers/phy/tegra/xusb.c:641:10: note: (near initialization for 'role_sx_desc.set')Caused by commit
bce3052f0c16("usb: roles: Provide the switch drivers handle to the switch in the API")interacting with commit
5a00c7c7604f("phy: tegra: xusb: Add usb-role-switch support")from the tegra tree.
I have added this merge fix patch (which may need more work):
From: Stephen Rothwell <[email protected]>
Date: Mon, 16 Mar 2020 14:04:20 +1100
Subject: [PATCH] phy: tegra: fix up forset_roleAPI changeSigned-off-by Stephen Rothwell <[email protected]>--- drivers/phy/tegra/xusb.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/phy/tegra/xusb.c +4
-3@@ -596,11 +596,12 @@ static void tegra_xusb_usb_phy_work(struct work_struct *work)atomic_notifier_call_chain (&port->usb_phy.notifier,0 , &port->usb_phy); } -static int tegra_xusb_role_sw_set (struct device *dev,enum usb_role role) +static int tegra_xusb_role_sw_set (struct usb_role_switch *sw, +enum usb_role role) { -struct tegra_xusb_port *port =dev_get_drvdata (dev); +struct tegra_xusb_port *port =usb_role_switch_get_drvdata (sw); -dev_dbg (dev,"%s(): role %s\n" , __func__, usb_roles[role]); +dev_dbg (&port->dev,"%s(): role %s\n" , __func__, usb_roles[role]);schedule_work (&port->usb_phy_work);
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Signature · 1 line
2.25.0I can rebase the branch that contains this commit on top of Greg's USB tree. These are a dependency for the UDC and host driver changes that I have sent as a pull request to Greg, so this should all work out nicely.
Ok, should I take your pull request then, or not?
Let me rebase things first and I'll send an updated pull request. Please ignore the one I sent on Friday.
Quoted 8 lines
Quoted 4 lines
Greg, I recall that you've said in the past that you don't rebase your trees. Is that still the case for the USB tree? Do you have a preference what to base my branch on? The earliest of your USB tree that contains all patches needed to make this compile? Or the latest?
Yes, I do not rebase my tree. Please work off of the usb-next branch, and you can send me a pull request based anywhere, it should work just fine :)
Great, will do.
Thanks,
Thierry