diff --git a/linux_spi.c b/linux_spi.c index e3d7486ee..aa73c1815 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -26,12 +26,17 @@ #include #include #include -#include -#include #include "flash.h" #include "chipdrivers.h" #include "programmer.h" #include "spi.h" +/* + * Linux versions prior to v4.14-rc7 may need linux/ioctl.h included here due + * to missing from linux/spi/spidev.h. This was fixed in the following commit: + * a2b4a79b88b2 spi: uapi: spidev: add missing ioctl header + */ +#include +#include /* Devices known to work with this module (FIXME: export as struct dev_entry): * Beagle Bone Black