[lkml]   [2011]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH] usb: gadget: net2272 - Correct includes
    <linux/irq.h> states:

    * Please do not include this file in generic code. There is currently
    * no requirement for any architecture to implement anything held
    * within this file.

    prefetch() and prefetchw() need <linux/prefetch.h> on m68k:

    drivers/usb/gadget/net2272.c: In function ‘net2272_write_fifo’:
    drivers/usb/gadget/net2272.c:468: error: implicit declaration of function ‘prefetch’
    drivers/usb/gadget/net2272.c: In function ‘net2272_read_fifo’:
    drivers/usb/gadget/net2272.c:574: error: implicit declaration of function ‘prefetchw’

    Signed-off-by: Geert Uytterhoeven <>
    drivers/usb/gadget/net2272.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c
    index 7c7b0e1..ab98ea9 100644
    --- a/drivers/usb/gadget/net2272.c
    +++ b/drivers/usb/gadget/net2272.c
    @@ -27,13 +27,13 @@
    #include <linux/interrupt.h>
    #include <linux/io.h>
    #include <linux/ioport.h>
    -#include <linux/irq.h>
    #include <linux/kernel.h>
    #include <linux/list.h>
    #include <linux/module.h>
    #include <linux/moduleparam.h>
    #include <linux/pci.h>
    #include <linux/platform_device.h>
    +#include <linux/prefetch.h>
    #include <linux/sched.h>
    #include <linux/slab.h>
    #include <linux/timer.h>
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2011-08-08 11:39    [W:0.019 / U:12.388 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site