Skip to content

Commit 7d74eec

Browse files
baruchsiachgregkh
authored andcommitted
spi: uapi: spidev: add missing ioctl header
commit a2b4a79b88b24c49d98d45a06a014ffd22ada1a4 upstream. The SPI_IOC_MESSAGE() macro references _IOC_SIZEBITS. Add linux/ioctl.h to make sure this macro is defined. This fixes the following build failure of lcdproc with the musl libc: In file included from .../sysroot/usr/include/sys/ioctl.h:7:0, from hd44780-spi.c:31: hd44780-spi.c: In function 'spi_transfer': hd44780-spi.c:89:24: error: '_IOC_SIZEBITS' undeclared (first use in this function) status = ioctl(p->fd, SPI_IOC_MESSAGE(1), &xfer); ^ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3505478 commit 7d74eec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/uapi/linux/spi/spidev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#define SPIDEV_H
2424

2525
#include <linux/types.h>
26+
#include <linux/ioctl.h>
2627

2728
/* User space versions of kernel symbols for SPI clocking modes,
2829
* matching <linux/spi/spi.h>

0 commit comments

Comments
 (0)