From 3e36d08f97b302c80b357d82af707b1de21cbfc1 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 04:56:18 +0000 Subject: [PATCH] ib_srpt: Merge remaining configuration tests from trunk git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7746 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/conftest/dev_attr_max_send_sge/Makefile | 3 +++ .../dev_attr_max_send_sge/dev_attr_max_send_sge.c | 10 ++++++++++ srpt/conftest/rdma_query_gid/Makefile | 3 +++ srpt/conftest/rdma_query_gid/rdma_query_gid.c | 9 +++++++++ 4 files changed, 25 insertions(+) create mode 100644 srpt/conftest/dev_attr_max_send_sge/Makefile create mode 100644 srpt/conftest/dev_attr_max_send_sge/dev_attr_max_send_sge.c create mode 100644 srpt/conftest/rdma_query_gid/Makefile create mode 100644 srpt/conftest/rdma_query_gid/rdma_query_gid.c diff --git a/srpt/conftest/dev_attr_max_send_sge/Makefile b/srpt/conftest/dev_attr_max_send_sge/Makefile new file mode 100644 index 000000000..48187159e --- /dev/null +++ b/srpt/conftest/dev_attr_max_send_sge/Makefile @@ -0,0 +1,3 @@ +LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE) + +obj-m += dev_attr_max_send_sge.o diff --git a/srpt/conftest/dev_attr_max_send_sge/dev_attr_max_send_sge.c b/srpt/conftest/dev_attr_max_send_sge/dev_attr_max_send_sge.c new file mode 100644 index 000000000..8e0530411 --- /dev/null +++ b/srpt/conftest/dev_attr_max_send_sge/dev_attr_max_send_sge.c @@ -0,0 +1,10 @@ +#include +#include +#include + +static int modinit(void) +{ + return offsetof(struct ib_device_attr, max_send_sge); +} + +module_init(modinit); diff --git a/srpt/conftest/rdma_query_gid/Makefile b/srpt/conftest/rdma_query_gid/Makefile new file mode 100644 index 000000000..cbc811e2d --- /dev/null +++ b/srpt/conftest/rdma_query_gid/Makefile @@ -0,0 +1,3 @@ +LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE) + +obj-m += rdma_query_gid.o diff --git a/srpt/conftest/rdma_query_gid/rdma_query_gid.c b/srpt/conftest/rdma_query_gid/rdma_query_gid.c new file mode 100644 index 000000000..67aecf4a8 --- /dev/null +++ b/srpt/conftest/rdma_query_gid/rdma_query_gid.c @@ -0,0 +1,9 @@ +#include +#include + +static int modinit(void) +{ + return rdma_query_gid(NULL, 0, 0, NULL); +} + +module_init(modinit);