Re: [usb:usb-next 92/93] drivers/usb/chipidea/../host/ehci.h:665:2: error: implicit declaration of function 'readl'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 02, 2012 at 03:13:54PM -0400, Alan Stern wrote:
> On Sat, 3 Nov 2012, Fengguang Wu wrote:
> 
> > tree:   git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
> > head:   bc8d51ea7e8ae0abb90fa89407b55a7e0bcb0a2a
> > commit: 09f6ffde2ecef4cc4e2a5edaa303210cabd96f57 [92/93]  USB: EHCI: fix build error by making ChipIdea host a normal EHCI driver
> > config: make ARCH=arm imx_v6_v7_defconfig
> > 
> > All error/warnings:
> > 
> > In file included from drivers/usb/chipidea/host.c:28:0:
> > drivers/usb/chipidea/../host/ehci.h: In function 'ehci_readl':
> > drivers/usb/chipidea/../host/ehci.h:665:2: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
> > drivers/usb/chipidea/../host/ehci.h: In function 'ehci_writel':
> > drivers/usb/chipidea/../host/ehci.h:677:2: error: implicit declaration of function 'writel' [-Werror=implicit-function-declaration]
> > cc1: some warnings being treated as errors
> 
> This patch ought to fix the problem.  Can you test it?

Sure. It works!

Thanks,
Fengguang

> Alan Stern
> 
> 
> 
> Index: usb-3.7/drivers/usb/chipidea/host.c
> ===================================================================
> --- usb-3.7.orig/drivers/usb/chipidea/host.c
> +++ usb-3.7/drivers/usb/chipidea/host.c
> @@ -20,6 +20,7 @@
>   */
>  
>  #include <linux/kernel.h>
> +#include <linux/io.h>
>  #include <linux/usb.h>
>  #include <linux/usb/hcd.h>
>  #include <linux/usb/chipidea.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux