diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-09-10 19:29:45 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-13 18:43:11 +0200 |
commit | a2b4a79b88b24c49d98d45a06a014ffd22ada1a4 (patch) | |
tree | f5608a378cbdfd771679228ad4c8841d77cf1754 /drivers/spi | |
parent | Merge remote-tracking branch 'spi/topic/xlp' into spi-next (diff) | |
download | linux-a2b4a79b88b24c49d98d45a06a014ffd22ada1a4.tar.xz linux-a2b4a79b88b24c49d98d45a06a014ffd22ada1a4.zip |
spi: uapi: spidev: add missing ioctl header
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
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions