diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-09-10 20:29:45 +0300 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-11-05 23:54:37 -0500 |
commit | 2019ffe224e60f3cbbd83103f612d0145591aebd (patch) | |
tree | 7c5fae18d941ab7f91b702b5e13b6cf2ac5b1f2d | |
parent | 604e0d0b2e76f208cb9a742474631fb90ffd01c2 (diff) | |
download | linux-rt-2019ffe224e60f3cbbd83103f612d0145591aebd.tar.gz |
spi: uapi: spidev: add missing ioctl header
[ Upstream commit a2b4a79b88b24c49d98d45a06a014ffd22ada1a4 ]
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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
-rw-r--r-- | include/uapi/linux/spi/spidev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/spi/spidev.h b/include/uapi/linux/spi/spidev.h index dd5f21e75805..856de39d0b89 100644 --- a/include/uapi/linux/spi/spidev.h +++ b/include/uapi/linux/spi/spidev.h @@ -23,6 +23,7 @@ #define SPIDEV_H #include <linux/types.h> +#include <linux/ioctl.h> /* User space versions of kernel symbols for SPI clocking modes, * matching <linux/spi/spi.h> |