Skip to contentSkip to conversation

linux-next: build failure after merge of the final tree (usb-gadget tree related)

PATCH New Stephen Rothwell 4 participants 6 messages Aug 13, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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]
#1 lore raw

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
index 35494f1..7597545 100644
@@ -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
#2 lore raw
In reply to Stephen Rothwell

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 include linux/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
#3 lore raw
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 include linux/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
#4 lore raw
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 include linux/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 -

#5 lore raw
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 include linux/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