mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
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 <rdma/rdma_user_ioctl_cmds.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 <sergeygo@mellanox.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user