mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-28 09:20:18 +00:00
Added Kconfig entry for scst_user. Excluded scst_user from the kernel build
when HIGHMEM4G or HIGHMEM64G is enabled. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -65,6 +65,16 @@ config SCST_VDISK
|
||||
help
|
||||
SCST device handler for virtual disk and/or CDROM device.
|
||||
|
||||
config SCST_USER
|
||||
tristate "User-space SCSI target driver support"
|
||||
default SCST
|
||||
depends on SCSI && SCST && !HIGHMEM4G && !HIGHMEM64G
|
||||
help
|
||||
The SCST device handler scst_user allows to implement full-feature
|
||||
SCSI target devices in user space.
|
||||
|
||||
If unsure, say "N".
|
||||
|
||||
config SCST_STRICT_SERIALIZING
|
||||
bool "Strict serialization"
|
||||
depends on SCST
|
||||
|
||||
@@ -34,12 +34,14 @@
|
||||
#endif
|
||||
#include "scst_dev_handler.h"
|
||||
|
||||
#ifndef INSIDE_KERNEL_TREE
|
||||
#if defined(CONFIG_HIGHMEM4G) || defined(CONFIG_HIGHMEM64G)
|
||||
#warning "HIGHMEM kernel configurations are not supported by this module,\
|
||||
because nowadays it doesn't worth the effort. Consider changing\
|
||||
VMSPLIT option or use a 64-bit configuration instead. See README file\
|
||||
for details."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define DEV_USER_CMD_HASH_ORDER 6
|
||||
#define DEV_USER_ATTACH_TIMEOUT (5*HZ)
|
||||
@@ -3721,12 +3723,14 @@ static int __init init_scst_user(void)
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
#ifndef INSIDE_KERNEL_TREE
|
||||
#if defined(CONFIG_HIGHMEM4G) || defined(CONFIG_HIGHMEM64G)
|
||||
PRINT_ERROR("%s", "HIGHMEM kernel configurations are not supported. "
|
||||
"Consider changing VMSPLIT option or use a 64-bit "
|
||||
"configuration instead. See README file for details.");
|
||||
res = -EINVAL;
|
||||
goto out;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
user_cmd_cachep = KMEM_CACHE(scst_user_cmd, SCST_SLAB_FLAGS);
|
||||
|
||||
Reference in New Issue
Block a user