mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
ib_srpt: Fix in-tree build for kernel v4.4
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6780 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -694,7 +694,8 @@ static int srpt_refresh_port(struct srpt_port *sport)
|
||||
sport->lid = port_attr.lid;
|
||||
|
||||
ret = ib_query_gid(sport->sdev->device, sport->port, 0, &sport->gid
|
||||
#ifdef IB_QUERY_GID_HAS_ATTR_ARG
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) || \
|
||||
defined(IB_QUERY_GID_HAS_ATTR_ARG)
|
||||
, NULL
|
||||
#endif
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user