Skip to content
Snippets Groups Projects
Commit 5ec71651 authored by Felix Fietkau's avatar Felix Fietkau Committed by Oussama Ghorbel
Browse files

kernel: fix linux/spi/spidev.h portability issues with musl


Felix will try to get this define included into musl

lede-commit: 795e7cf60de19e7a076a46874fab7bb88b43bbff
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent c1477eb1
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ struct spi_ioc_transfer {
/* not all platforms use <asm-generic/ioctl.h> 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)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment