mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
Merge branch 'svn-trunk'
This commit is contained in:
@@ -55,7 +55,7 @@ ifeq ($(INSTALL_MOD_PATH),)
|
||||
endif
|
||||
|
||||
INSTALL_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra
|
||||
INFINIBAND_ENABLED = $(shell if grep -wq 'ib_register_client' $$(dirname "$(KDIR)")/modules.symbols; then echo true; else echo false; fi)
|
||||
INFINIBAND_ENABLED = $(shell syms=$$(dirname "$(KDIR)")/modules.symbols; if [ -e "$$syms" ] && grep -wq 'ib_register_client' "$$syms" || grep -q "^CONFIG_INFINIBAND=[my]$$" "$(KDIR)/.config"; then echo true; else echo false; fi)
|
||||
|
||||
all: progs mods
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#include <linux/module.h>
|
||||
#include <rdma/ib_verbs.h>
|
||||
|
||||
static void client_remove(struct ib_device *dev, void *client_data)
|
||||
static void remove_one(struct ib_device *device, void *client_data)
|
||||
{
|
||||
}
|
||||
|
||||
static int modinit(void)
|
||||
{
|
||||
struct ib_client c = { .remove = client_remove };
|
||||
struct ib_client c = { .remove = remove_one };
|
||||
|
||||
return (uintptr_t)c.remove;
|
||||
return c.remove != NULL;
|
||||
}
|
||||
|
||||
module_init(modinit);
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
#include <linux/module.h>
|
||||
#include <rdma/ib_verbs.h>
|
||||
|
||||
static struct ib_device *dev;
|
||||
|
||||
static int modinit(void)
|
||||
{
|
||||
return dev->dma_ops != NULL;
|
||||
return ib_dma_mapping_error(NULL, 0) != 0;
|
||||
}
|
||||
|
||||
module_init(modinit);
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
#include <linux/module.h>
|
||||
#include <rdma/ib_verbs.h>
|
||||
|
||||
static void client_remove(struct ib_device *dev, void *client_data)
|
||||
static void remove_one(struct ib_device *device, void *client_data)
|
||||
{
|
||||
}
|
||||
|
||||
static int modinit(void)
|
||||
{
|
||||
struct ib_client c = { .remove = client_remove };
|
||||
struct ib_client c = { .remove = remove_one };
|
||||
|
||||
return (uintptr_t)c.remove;
|
||||
return c.remove != NULL;
|
||||
}
|
||||
|
||||
module_init(modinit);
|
||||
|
||||
Reference in New Issue
Block a user