diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2008-05-23 21:16:40 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-07-15 10:16:43 -0400 |
commit | fe9233fb6914a0eb20166c967e3020f7f0fba2c9 (patch) | |
tree | 45d6f25301e41ff9323f2eee20fce6ae341cda7f /include/scsi | |
parent | d7f305e9a08040649b0800245e67708df58cdb55 (diff) |
[SCSI] scsi_dh: fix kconfig related build errors
Do not automatically "select" SCSI_DH for dm-multipath. If SCSI_DH
doesn't exist,just do not allow hardware handlers to be used.
Handle SCSI_DH being a module also. Make sure it doesn't allow DM_MULTIPATH
to be compiled in when SCSI_DH is a module.
[jejb: added comment for Kconfig syntax]
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_dh.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h index 04d0d8495c83..3ad2303d1a16 100644 --- a/include/scsi/scsi_dh.h +++ b/include/scsi/scsi_dh.h | |||
@@ -54,6 +54,16 @@ enum { | |||
54 | SCSI_DH_NOSYS, | 54 | SCSI_DH_NOSYS, |
55 | SCSI_DH_DRIVER_MAX, | 55 | SCSI_DH_DRIVER_MAX, |
56 | }; | 56 | }; |
57 | 57 | #if defined(CONFIG_SCSI_DH) || defined(CONFIG_SCSI_DH_MODULE) | |
58 | extern int scsi_dh_activate(struct request_queue *); | 58 | extern int scsi_dh_activate(struct request_queue *); |
59 | extern int scsi_dh_handler_exist(const char *); | 59 | extern int scsi_dh_handler_exist(const char *); |
60 | #else | ||
61 | static inline int scsi_dh_activate(struct request_queue *req) | ||
62 | { | ||
63 | return 0; | ||
64 | } | ||
65 | static inline int scsi_dh_handler_exist(const char *name) | ||
66 | { | ||
67 | return 0; | ||
68 | } | ||
69 | #endif | ||