ar71xx: fix legacy image build error
[openwrt/openwrt.git] / target / linux / generic / patches-4.1 / 214-spidev_h_portability.patch
1 --- a/include/uapi/linux/spi/spidev.h
2 +++ b/include/uapi/linux/spi/spidev.h
3 @@ -111,7 +111,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