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);