diff options
author | Kashyap, Desai <kashyap.desai@lsi.com> | 2010-11-12 17:59:20 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-21 13:24:02 -0500 |
commit | 363fa50fc35357b1361fb63b0726335de993374a (patch) | |
tree | b121e3cff170fa11d7caa3a7af64a321aab51043 /drivers/scsi/mpt2sas/mpt2sas_ctl.c | |
parent | 1f768e91e1fcd9f0df657783847347a833fdc573 (diff) |
[SCSI] mpt2sas: Removed compiler warnnings when logging is disabled
The compiler throws warning messages while compiling without
CONFIG_SCSI_MPT2SAS_LOGGING.
Set proper ifdef for CONFIG_SCSI_MPT2SAS_LOGGING to avoid warnnings.
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_ctl.c')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c index 40cb8aeb21b1..e92b77af5484 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c | |||
@@ -81,6 +81,7 @@ enum block_state { | |||
81 | BLOCKING, | 81 | BLOCKING, |
82 | }; | 82 | }; |
83 | 83 | ||
84 | #ifdef CONFIG_SCSI_MPT2SAS_LOGGING | ||
84 | /** | 85 | /** |
85 | * _ctl_sas_device_find_by_handle - sas device search | 86 | * _ctl_sas_device_find_by_handle - sas device search |
86 | * @ioc: per adapter object | 87 | * @ioc: per adapter object |
@@ -107,7 +108,6 @@ _ctl_sas_device_find_by_handle(struct MPT2SAS_ADAPTER *ioc, u16 handle) | |||
107 | return r; | 108 | return r; |
108 | } | 109 | } |
109 | 110 | ||
110 | #ifdef CONFIG_SCSI_MPT2SAS_LOGGING | ||
111 | /** | 111 | /** |
112 | * _ctl_display_some_debug - debug routine | 112 | * _ctl_display_some_debug - debug routine |
113 | * @ioc: per adapter object | 113 | * @ioc: per adapter object |