linux-next: build failure after merge of the final tree (usb-gadget tree related)
Subsystems (2)
Hi all,
After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/usb/phy/phy-am335x-control.c: In function 'am335x_control_usb_probe':drivers/usb/phy/phy-am335x-control.c:117:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
if (IS_ERR(ctrl_usb->phy_reg))
^drivers/usb/phy/phy-am335x-control.c:118:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
return PTR_ERR(ctrl_usb->phy_reg);
^
Caused by commit 3bb869c8b3f1 ("usb: phy: Add AM335x PHY driver") from the usb-gadget tree. Forgot to include linux/err.h.
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
PATCH 1/1 usb: phy: am335x: include linux/err.h
Stephen Rothwell reported that this driver does not compile on PowerPC due to this missing include. One could argue why this driver is enabled on PowerPC in the first place but it sure isn't wrong to include headers for used function instead of to rely that they sneak in.
--- drivers/usb/phy/phy-am335x-control.c | 1 + 1 file changed, 1 insertion(+)
drivers/usb/phy/phy-am335x-control.c +1 -0
@@ -1,5 +1,6 @@#include <linux/module.h> #include <linux/platform_device.h> +#include <linux/err.h> #include <linux/of.h> #include <linux/io.h>
Signature · 1 line
1.8.4.rc1
Hi,
Quoted 10 lines · Stephen Rothwell
Hi all,
After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/usb/phy/phy-am335x-control.c: In function 'am335x_control_usb_probe':drivers/usb/phy/phy-am335x-control.c:117:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
if (IS_ERR(ctrl_usb->phy_reg))
^drivers/usb/phy/phy-am335x-control.c:118:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]
Quoted 7 lines
return PTR_ERR(ctrl_usb->phy_reg); ^Caused by commit
3bb869c8b3f1("usb: phy: Add AM335x PHY driver") from the usb-gadget tree. Forgot to includelinux/err.h.I have reverted that commit for today.
damn, I didn't catch that. Sebastian, can you send a patch ?
Signature · 1 line
balbi
Quoted 16 lines · Felipe Balbi
Hi,
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/usb/phy/phy-am335x-control.c: In function 'am335x_control_usb_probe':drivers/usb/phy/phy-am335x-control.c:117:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
if (IS_ERR(ctrl_usb->phy_reg))
^drivers/usb/phy/phy-am335x-control.c:118:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]return PTR_ERR(ctrl_usb->phy_reg); ^
Quoted 6 lines
Quoted 4 lines
Caused by commit
3bb869c8b3f1("usb: phy: Add AM335x PHY driver") from the usb-gadget tree. Forgot to includelinux/err.h.I have reverted that commit for today.
damn, I didn't catch that. Sebastian, can you send a patch ?
nevermind already patched it myself.
Signature · 1 line
balbi
Quoted 17 lines · Felipe Balbi
Quoted 16 lines · Felipe Balbi
Hi,
Quoted 13 lines · Stephen Rothwell
Hi all,
After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/usb/phy/phy-am335x-control.c: In function 'am335x_control_usb_probe':drivers/usb/phy/phy-am335x-control.c:117:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
if (IS_ERR(ctrl_usb->phy_reg))
^drivers/usb/phy/phy-am335x-control.c:118:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]return PTR_ERR(ctrl_usb->phy_reg); ^
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Caused by commit
3bb869c8b3f1("usb: phy: Add AM335x PHY driver") from the usb-gadget tree. Forgot to includelinux/err.h.I have reverted that commit for today.
damn, I didn't catch that. Sebastian, can you send a patch ?
nevermind already patched it myself.
Sebastian sent some hours ago this one:
[PATCH] usb: phy: am335x: include linux/err.h
- Sedat -
Quoted 23 lines · Sedat Dilek
Quoted 22 lines · Felipe Balbi
Quoted 21 lines · Felipe Balbi
Hi,
Quoted 17 lines · Stephen Rothwell
Hi all,
After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/usb/phy/phy-am335x-control.c: In function 'am335x_control_usb_probe':drivers/usb/phy/phy-am335x-control.c:117:2: error: implicit declaration of function 'IS_ERR' [-Werror=implicit-function-declaration]
if (IS_ERR(ctrl_usb->phy_reg))
^drivers/usb/phy/phy-am335x-control.c:118:3: error: implicit declaration of function 'PTR_ERR' [-Werror=implicit-function-declaration]return PTR_ERR(ctrl_usb->phy_reg); ^Caused by commit
3bb869c8b3f1("usb: phy: Add AM335x PHY driver") from the usb-gadget tree. Forgot to includelinux/err.h.I have reverted that commit for today.
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
damn, I didn't catch that. Sebastian, can you send a patch ?
nevermind already patched it myself.
Sebastian sent some hours ago this one:
[PATCH] usb: phy: am335x: include
linux/err.h
will replace with that.
Signature · 1 line
balbi