mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 13:41:27 +00:00
ib_srpt, iscsi-scst: Add the configure tests necessary for building against kernel v5.8 (merge r9073 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.4.x@9100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
3
iscsi-scst/conftest/rdma_reject/Makefile
Normal file
3
iscsi-scst/conftest/rdma_reject/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE)
|
||||
|
||||
obj-m += rdma_reject.o
|
||||
11
iscsi-scst/conftest/rdma_reject/rdma_reject.c
Normal file
11
iscsi-scst/conftest/rdma_reject/rdma_reject.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <linux/module.h>
|
||||
#include <rdma/rdma_cm.h>
|
||||
|
||||
static struct rdma_cm_id id;
|
||||
|
||||
static int __init modinit(void)
|
||||
{
|
||||
return rdma_reject(&id, NULL, 0, 0);
|
||||
}
|
||||
|
||||
module_init(modinit);
|
||||
3
srpt/conftest/ib_client_add_one/Makefile
Normal file
3
srpt/conftest/ib_client_add_one/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE)
|
||||
|
||||
obj-m += add_one.o
|
||||
18
srpt/conftest/ib_client_add_one/add_one.c
Normal file
18
srpt/conftest/ib_client_add_one/add_one.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <linux/module.h>
|
||||
#include <rdma/rdma_cm.h>
|
||||
|
||||
static int add_one(struct ib_device *device)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct ib_client test_client = {
|
||||
.add = add_one,
|
||||
};
|
||||
|
||||
static int __init modinit(void)
|
||||
{
|
||||
return ib_register_client(&test_client);
|
||||
}
|
||||
|
||||
module_init(modinit);
|
||||
3
srpt/conftest/rdma_reject/Makefile
Normal file
3
srpt/conftest/rdma_reject/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
LINUXINCLUDE := $(PRE_CFLAGS) $(LINUXINCLUDE)
|
||||
|
||||
obj-m += rdma_reject.o
|
||||
11
srpt/conftest/rdma_reject/rdma_reject.c
Normal file
11
srpt/conftest/rdma_reject/rdma_reject.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <linux/module.h>
|
||||
#include <rdma/rdma_cm.h>
|
||||
|
||||
static struct rdma_cm_id id;
|
||||
|
||||
static int __init modinit(void)
|
||||
{
|
||||
return rdma_reject(&id, NULL, 0, 0);
|
||||
}
|
||||
|
||||
module_init(modinit);
|
||||
Reference in New Issue
Block a user