Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / generic / patches-3.18 / 214-spidev_h_portability.patch
1 --- a/include/uapi/linux/spi/spidev.h
2 +++ b/include/uapi/linux/spi/spidev.h
3 @@ -112,7 +112,7 @@ struct spi_ioc_transfer {
4  
5  /* not all platforms use <asm-generic/ioctl.h> or _IOC_TYPECHECK() ... */
6  #define SPI_MSGSIZE(N) \
7 -       ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << _IOC_SIZEBITS)) \
8 +       ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << 13)) \
9                 ? ((N)*(sizeof (struct spi_ioc_transfer))) : 0)
10  #define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[SPI_MSGSIZE(N)])
11