diff mbox series

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

Message ID 20210422102604.3034217-1-quanyang.wang@windriver.com (mailing list archive)
State Accepted
Commit bc2e9578baed90f36abe6bb922b9598a327b0555
Headers show
Series spi: tools: make a symbolic link to the header file spi.h | expand

Commit Message

Quanyang Wang April 22, 2021, 10:26 a.m. UTC
From: Quanyang Wang <quanyang.wang@windriver.com>

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>
---
 tools/spi/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Mark Brown April 22, 2021, 4:48 p.m. UTC | #1
On Thu, 22 Apr 2021 18:26:04 +0800, quanyang.wang@windriver.com wrote:
> 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.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: tools: make a symbolic link to the header file spi.h
      commit: bc2e9578baed90f36abe6bb922b9598a327b0555

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/tools/spi/Makefile b/tools/spi/Makefile
index ada881afb489..0aa6dbd31fb8 100644
--- a/tools/spi/Makefile
+++ b/tools/spi/Makefile
@@ -25,11 +25,12 @@  include $(srctree)/tools/build/Makefile.include
 #
 # We need the following to be outside of kernel tree
 #
-$(OUTPUT)include/linux/spi/spidev.h: ../../include/uapi/linux/spi/spidev.h
+$(OUTPUT)include/linux/spi: ../../include/uapi/linux/spi
 	mkdir -p $(OUTPUT)include/linux/spi 2>&1 || true
 	ln -sf $(CURDIR)/../../include/uapi/linux/spi/spidev.h $@
+	ln -sf $(CURDIR)/../../include/uapi/linux/spi/spi.h $@
 
-prepare: $(OUTPUT)include/linux/spi/spidev.h
+prepare: $(OUTPUT)include/linux/spi
 
 #
 # spidev_test