mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
scst: Make it easier to build without DLM support
With this change all that is required to build without DLM support is to add the following in scst_priv.h: #undef CONFIG_DLM #undef CONFIG_DLM_MODULE git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -49,12 +49,7 @@ scst-y += scst_mem.o
|
||||
scst-y += scst_debug.o
|
||||
scst-y += scst_pres.o
|
||||
scst-y += scst_no_dlm.o
|
||||
ifdef CONFIG_DLM
|
||||
scst-y += scst_dlm.o
|
||||
endif
|
||||
ifdef CONFIG_DLM_MODULE
|
||||
scst-y += scst_dlm.o
|
||||
endif
|
||||
scst-y += scst_tg.o
|
||||
scst-y += scst_event.o
|
||||
scst-y += scst_copy_mgr.o
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "scst_pres.h"
|
||||
#include "scst_dlm.h"
|
||||
|
||||
#if defined(CONFIG_DLM) || defined(CONFIG_DLM_MODULE)
|
||||
|
||||
static void scst_pr_dlm_cleanup(struct scst_device *dev);
|
||||
static void scst_dlm_pre_bast(void *bastarg, int mode);
|
||||
static void scst_dlm_post_bast(void *bastarg, int mode);
|
||||
@@ -1493,3 +1495,5 @@ const struct scst_cl_ops scst_dlm_cl_ops = {
|
||||
.is_not_rsv_holder = scst_dlm_is_not_rsv_holder,
|
||||
.reserve = scst_dlm_reserve,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user