Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 2 participants 3 messages Jun 17, 2010

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

Hi Greg,

After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from drivers/usb/host/ehci-hcd.c:113:
drivers/usb/host/ehci-dbg.c: In function 'debug_lpm_write':
drivers/usb/host/ehci-dbg.c:992: error: implicit declaration of function 'copy_from_user'

Caused by commit a3c0b4b257eeaefe4e6c8fbf5ddfe674242f1b9e ("USB: EHCI:
EHCI 1.1 addendum: preparation"). Presumably a missing include of linux/uaccess.h ...

I applied this patch for today:

From: Stephen Rothwell <[email protected]>
Date: Thu, 17 Jun 2010 14:49:09 +1000
Subject: [PATCH] usb: using copy_from_user in ehci-hcd requies the include of uaccess.h

---
 drivers/usb/host/ehci-hcd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/usb/host/ehci-hcd.c +1 -0
index 40928fe..8697ad1 100644
@@ -36,6 +36,7 @@
 #include <linux/dma-mapping.h>
 #include <linux/debugfs.h>
 #include <linux/slab.h>
+#include <linux/uaccess.h>
 
 #include <asm/byteorder.h>
 #include <asm/io.h>
Signature · 7 lines
1.7.1


-- 
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#1 lore raw
Quoted 9 lines · Stephen Rothwell

Hi Greg,

After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this:

In file included from drivers/usb/host/ehci-hcd.c:113:
drivers/usb/host/ehci-dbg.c: In function 'debug_lpm_write':
drivers/usb/host/ehci-dbg.c:992: error: implicit declaration of function 'copy_from_user'

Quoted 5 lines

Caused by commit a3c0b4b257eeaefe4e6c8fbf5ddfe674242f1b9e ("USB: EHCI:
EHCI 1.1 addendum: preparation"). Presumably a missing include of linux/uaccess.h ...

I applied this patch for today:

thanks, I've merged your fix in with the main patch so this problem will not show up, and pushed the updated patches out.

thanks,

greg k-h

#2 lore raw

Hi Greg,

Quoted 3 lines · On Thu, 17 Jun 2010 10:25:16 -0700 Greg KH <[email protected]> wrote:

thanks, I've merged your fix in with the main patch so this problem will not show up, and pushed the updated patches out.

Thanks.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/