Re: [PATCH] build error drivers/staging/dt3155/dt3155_drv.c

From: Jan III Sobieski
Date: Wed Apr 07 2010 - 00:05:28 EST


W dniu 7 kwietnia 2010 06:04 użytkownik Jan III Sobieski
<jan3sobi3ski@xxxxxxxxx> napisał:
> Hi,
>
>  CC      drivers/staging/dt3155/dt3155_drv.o
> drivers/staging/dt3155/dt3155_drv.c: In function 'init_module':
> drivers/staging/dt3155/dt3155_drv.c:1047: error: implicit declaration
> of function 'request_irq'
> drivers/staging/dt3155/dt3155_drv.c:1048: error: 'IRQF_SHARED'
> undeclared (first use in this function)
> drivers/staging/dt3155/dt3155_drv.c:1048: error: (Each undeclared
> identifier is reported only once
> drivers/staging/dt3155/dt3155_drv.c:1048: error: for each function it
> appears in.)
> drivers/staging/dt3155/dt3155_drv.c:1048: error: 'IRQF_DISABLED'
> undeclared (first use in this function)
> drivers/staging/dt3155/dt3155_drv.c: In function 'cleanup_module':
> drivers/staging/dt3155/dt3155_drv.c:1091: error: implicit declaration
> of function 'free_irq'
> make[3]: *** [drivers/staging/dt3155/dt3155_drv.o] Błąd 1
> make[2]: *** [drivers/staging/dt3155] Błąd 2
> make[1]: *** [drivers/staging] Błąd 2
> make: *** [drivers] Błąd 2

BTW. Kernel 2.6.34-rc3-git6

>
>
> --
> Jan III Sobieski
>
> Signed-off-by: Jan III Sobieski <jan3sobi3ski@xxxxxxxxx>
>
> --- linux-2.6-git/drivers/staging/dt3155/dt3155_drv.c   2010-03-27
> 22:34:58.000000000 +0100
> +++ linux-2.6/drivers/staging/dt3155/dt3155_drv.c       2010-04-07
> 05:54:07.000000000 +0200
> @@ -74,6 +74,7 @@ MODULE_LICENSE("GPL");
>  #include <linux/types.h>
>  #include <linux/poll.h>
>  #include <linux/sched.h>
> +#include <linux/interrupt.h>
>
>  #include <asm/io.h>
>  #include <asm/uaccess.h>
>



--
Jan III Sobieski
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/