Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: tools: make a symbolic link to the header file spi.h

The header file spi.h in include/uapi/linux/spi is needed for spidev.h,
so we also need make a symbolic link to it to eliminate the error message
as below:

In file included from spidev_test.c:24:
include/linux/spi/spidev.h:28:10: fatal error: linux/spi/spi.h: No such file or directory
28 | #include <linux/spi/spi.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.

Fixes: f7005142dace ("spi: uapi: unify SPI modes into a single spi.h")
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Link: https://lore.kernel.org/r/20210422102604.3034217-1-quanyang.wang@windriver.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Quanyang Wang and committed by
Mark Brown
bc2e9578 24b5515a

+3 -2
+3 -2
tools/spi/Makefile
··· 25 25 # 26 26 # We need the following to be outside of kernel tree 27 27 # 28 - $(OUTPUT)include/linux/spi/spidev.h: ../../include/uapi/linux/spi/spidev.h 28 + $(OUTPUT)include/linux/spi: ../../include/uapi/linux/spi 29 29 mkdir -p $(OUTPUT)include/linux/spi 2>&1 || true 30 30 ln -sf $(CURDIR)/../../include/uapi/linux/spi/spidev.h $@ 31 + ln -sf $(CURDIR)/../../include/uapi/linux/spi/spi.h $@ 31 32 32 - prepare: $(OUTPUT)include/linux/spi/spidev.h 33 + prepare: $(OUTPUT)include/linux/spi 33 34 34 35 # 35 36 # spidev_test