From 63ed4b4f9ac99514af68e9176d766ebbaf2549a2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 1 Nov 2018 05:28:18 +0000 Subject: [PATCH] ib_srpt: Fix build against MLNX_OFED-4.5 This patch fixes the following error during srpt compilation: CC [M] /.autodirect/mtrswgwork/sergeygo/scst-trunk/srpt/src/ib_srpt.o In file included from /usr/src/ofa_kernel/default/include/rdma/ib_verbs.h:76:0, from /usr/src/ofa_kernel/default/include/rdma/ib_cache.h:38, from /.autodirect/mtrswgwork/sergeygo/scst-trunk/srpt/src/ib_srpt.c:61: /usr/src/ofa_kernel/default/include/uapi/rdma/rdma_user_ioctl.h:45:10: fatal error: rdma/rdma_user_ioctl_cmds.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The same problem has already been fixed for iscsi in [r7215] "iscsi-scst/Makefile: Add include/uapi directory to the include path". From: Sergey Gorenko git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7597 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/srpt/Makefile b/srpt/Makefile index 7ece698b7..2c113eafc 100644 --- a/srpt/Makefile +++ b/srpt/Makefile @@ -79,7 +79,9 @@ OFED_KERNEL_DIR:=/usr/src/ofa_kernel/default OFED_RPM_VERS=$(shell rpm -q --qf '%{version}\n' mlnx-ofa_kernel-devel 2>/dev/null | grep -v ' ') OFED_DEB_VERS=$(shell dpkg-query -W --showformat='$${Version}\n' mlnx-ofed-kernel-dkms 2>/dev/null) OFED_VERS=$(OFED_RPM_VERS)$(OFED_DEB_VERS) -OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include -include "linux/compat-2.6.h" +OFED_CFLAGS:=-I$(OFED_KERNEL_DIR)/include \ + -I$(OFED_KERNEL_DIR)/include/uapi \ + -include "linux/compat-2.6.h" else # OFED 1.5 OFED_KERNEL_DIR:=/usr/src/ofa_kernel