Re: [PATCH -next] libertas/if_spi: needs linux/semaphore.h

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

 



On Wed, 2010-02-03 at 15:31 -0800, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
> 
> libertas/if_spi.c needs to #include linux/semaphore.h to fix build errors:
> 
> drivers/net/wireless/libertas/if_spi.c:59: error: field 'spi_ready' has incomplete type
> drivers/net/wireless/libertas/if_spi.c:60: error: field 'spi_thread_terminated' has incomplete type
> drivers/net/wireless/libertas/if_spi.c:785: error: implicit declaration of function 'down_interruptible'
> drivers/net/wireless/libertas/if_spi.c:787: error: implicit declaration of function 'up'
> drivers/net/wireless/libertas/if_spi.c:834: error: implicit declaration of function 'down'
> drivers/net/wireless/libertas/if_spi.c:943: error: implicit declaration of function 'sema_init'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Acked-by: Dan Williams <dcbw@xxxxxxxxxx>

> ---
>  drivers/net/wireless/libertas/if_spi.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-next-20100203.orig/drivers/net/wireless/libertas/if_spi.c
> +++ linux-next-20100203/drivers/net/wireless/libertas/if_spi.c
> @@ -23,6 +23,7 @@
>  #include <linux/kthread.h>
>  #include <linux/list.h>
>  #include <linux/netdevice.h>
> +#include <linux/semaphore.h>
>  #include <linux/spi/libertas_spi.h>
>  #include <linux/spi/spi.h>
>  


--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux