]> git.baikalelectronics.ru Git - kernel.git/commit
spi: uapi: spidev: add missing ioctl header
authorBaruch Siach <baruch@tkos.co.il>
Sun, 10 Sep 2017 17:29:45 +0000 (20:29 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 13 Sep 2017 16:43:11 +0000 (09:43 -0700)
commit5ceb0f74d9ab52153abbede0fa9b017614697b57
treef5608a378cbdfd771679228ad4c8841d77cf1754
parentab93096398baf536e3be982ef9b96b39c0dfd514
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
include/uapi/linux/spi/spidev.h