Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 15e7357

Browse files
wqyounggregkh
authored andcommitted
spi: tools: make a symbolic link to the header file spi.h
[ Upstream commit bc2e957 ] 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: f700514 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3b61f2f commit 15e7357

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/spi/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ include $(srctree)/tools/build/Makefile.include
2525
#
2626
# We need the following to be outside of kernel tree
2727
#
28-
$(OUTPUT)include/linux/spi/spidev.h: ../../include/uapi/linux/spi/spidev.h
28+
$(OUTPUT)include/linux/spi: ../../include/uapi/linux/spi
2929
mkdir -p $(OUTPUT)include/linux/spi 2>&1 || true
3030
ln -sf $(CURDIR)/../../include/uapi/linux/spi/spidev.h $@
31+
ln -sf $(CURDIR)/../../include/uapi/linux/spi/spi.h $@
3132

32-
prepare: $(OUTPUT)include/linux/spi/spidev.h
33+
prepare: $(OUTPUT)include/linux/spi
3334

3435
#
3536
# spidev_test

0 commit comments

Comments
 (0)