Re: [PATCH] musb: fix prefetch build failure

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

 



On Wed, May 25, 2011 at 08:13:24AM -0400, Mike Frysinger wrote:
> After the prefetch/list.h restructure, drivers need to explicitly include
> linux/prefetch.h in order to use the prefetch() function.  Otherwise, the
> current driver fails to build:
> 
> drivers/usb/musb/musb_core.c: In function 'musb_write_fifo':
> drivers/usb/musb/musb_core.c:219: error: implicit declaration of function 'prefetch'
> make[3]: *** [drivers/usb/musb/musb_core.o] Error 1
> 
> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>

Signed-off-by: Felipe Balbi <balbi@xxxxxx>

I wonder how that passed via linux-next :-p

Greg, if you want this uniq patch to go via a pull request, let me know.

> ---
>  drivers/usb/musb/musb_core.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
> index ab8e100..c71b037 100644
> --- a/drivers/usb/musb/musb_core.c
> +++ b/drivers/usb/musb/musb_core.c
> @@ -96,6 +96,7 @@
>  #include <linux/init.h>
>  #include <linux/list.h>
>  #include <linux/kobject.h>
> +#include <linux/prefetch.h>
>  #include <linux/platform_device.h>
>  #include <linux/io.h>
>  
> -- 
> 1.7.5.rc3

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux