summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2016-08-12 15:04:33 +0200
committerMark Brown <broonie@kernel.org>2016-08-15 15:23:55 +0200
commit8736f8022e532a3c1d8873aac78e1113c6ffc3b9 (patch)
tree398ddcfe2d69a378e21ad4759e899a76b7064447 /drivers/spi
parentMAINTAINERS: add tools/spi/ to the SPI entry (diff)
downloadlinux-8736f8022e532a3c1d8873aac78e1113c6ffc3b9.tar.xz
linux-8736f8022e532a3c1d8873aac78e1113c6ffc3b9.zip
spi: spidev_test: fix build with musl libc
spidev.h uses _IOC_SIZEBITS directly. musl libc does not provide this macro unless linux/ioctl.h is included explicitly. Fixes build failures like: In file included from .../host/usr/arm-buildroot-linux-musleabihf/sysroot/usr/include/sys/ioctl.h:7:0, from .../build/spidev_test-v3.15/spidev_test.c:20: .../build/spidev_test-v3.15/spidev_test.c: In function ‘transfer’: .../build/spidev_test-v3.15/spidev_test.c:75:18: error: ‘_IOC_SIZEBITS’ undeclared (first use in this function) ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr); ^ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions