--- zzzz-none-000/linux-5.4.213/include/uapi/linux/spi/spidev.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/uapi/linux/spi/spidev.h 2024-08-14 09:02:10.000000000 +0000 @@ -117,7 +117,7 @@ /* not all platforms use or _IOC_TYPECHECK() ... */ #define SPI_MSGSIZE(N) \ - ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << _IOC_SIZEBITS)) \ + ((((N)*(sizeof (struct spi_ioc_transfer))) < (1 << 13)) \ ? ((N)*(sizeof (struct spi_ioc_transfer))) : 0) #define SPI_IOC_MESSAGE(N) _IOW(SPI_IOC_MAGIC, 0, char[SPI_MSGSIZE(N)])