diff options
author | walter harms <wharms@bfs.de> | 2007-04-26 03:35:09 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-08 12:15:08 -0400 |
commit | 84a3c97b93ec5b4509637801a703693bb710cd4c (patch) | |
tree | 53208e3356a9364613c551ad91b54cf9eca7f23f /drivers/scsi/megaraid.h | |
parent | 39580f2c15485ee7f40923af731b3052f70cb890 (diff) |
[SCSI] megaraid: fix warnings when CONFIG_PROC_FS=n
drivers/scsi/megaraid.c: In function 'megaraid_probe_one':
drivers/scsi/megaraid.c:4893: warning: implicit declaration of function 'mega_create_proc_entry'
drivers/scsi/megaraid.c: In function 'megaraid_remove_one':
drivers/scsi/megaraid.c:4968: warning: unused variable 'buf'
Fix by adding #defines
Signed-off-by: walter harms <wharms@bfs.de>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/megaraid.h')
-rw-r--r-- | drivers/scsi/megaraid.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid.h b/drivers/scsi/megaraid.h index c6e74643abe..ee70bd4ae4b 100644 --- a/drivers/scsi/megaraid.h +++ b/drivers/scsi/megaraid.h | |||
@@ -1002,7 +1002,6 @@ static int megaraid_reset(Scsi_Cmnd *); | |||
1002 | static int megaraid_abort_and_reset(adapter_t *, Scsi_Cmnd *, int); | 1002 | static int megaraid_abort_and_reset(adapter_t *, Scsi_Cmnd *, int); |
1003 | static int megaraid_biosparam(struct scsi_device *, struct block_device *, | 1003 | static int megaraid_biosparam(struct scsi_device *, struct block_device *, |
1004 | sector_t, int []); | 1004 | sector_t, int []); |
1005 | static int mega_print_inquiry(char *, char *); | ||
1006 | 1005 | ||
1007 | static int mega_build_sglist (adapter_t *adapter, scb_t *scb, | 1006 | static int mega_build_sglist (adapter_t *adapter, scb_t *scb, |
1008 | u32 *buffer, u32 *length); | 1007 | u32 *buffer, u32 *length); |
@@ -1024,6 +1023,7 @@ static int mega_init_scb (adapter_t *); | |||
1024 | static int mega_is_bios_enabled (adapter_t *); | 1023 | static int mega_is_bios_enabled (adapter_t *); |
1025 | 1024 | ||
1026 | #ifdef CONFIG_PROC_FS | 1025 | #ifdef CONFIG_PROC_FS |
1026 | static int mega_print_inquiry(char *, char *); | ||
1027 | static void mega_create_proc_entry(int, struct proc_dir_entry *); | 1027 | static void mega_create_proc_entry(int, struct proc_dir_entry *); |
1028 | static int proc_read_config(char *, char **, off_t, int, int *, void *); | 1028 | static int proc_read_config(char *, char **, off_t, int, int *, void *); |
1029 | static int proc_read_stat(char *, char **, off_t, int, int *, void *); | 1029 | static int proc_read_stat(char *, char **, off_t, int, int *, void *); |
@@ -1040,10 +1040,10 @@ static int proc_rdrv_20(char *, char **, off_t, int, int *, void *); | |||
1040 | static int proc_rdrv_30(char *, char **, off_t, int, int *, void *); | 1040 | static int proc_rdrv_30(char *, char **, off_t, int, int *, void *); |
1041 | static int proc_rdrv_40(char *, char **, off_t, int, int *, void *); | 1041 | static int proc_rdrv_40(char *, char **, off_t, int, int *, void *); |
1042 | static int proc_rdrv(adapter_t *, char *, int, int); | 1042 | static int proc_rdrv(adapter_t *, char *, int, int); |
1043 | #endif | ||
1044 | 1043 | ||
1045 | static int mega_adapinq(adapter_t *, dma_addr_t); | 1044 | static int mega_adapinq(adapter_t *, dma_addr_t); |
1046 | static int mega_internal_dev_inquiry(adapter_t *, u8, u8, dma_addr_t); | 1045 | static int mega_internal_dev_inquiry(adapter_t *, u8, u8, dma_addr_t); |
1046 | #endif | ||
1047 | 1047 | ||
1048 | static int mega_support_ext_cdb(adapter_t *); | 1048 | static int mega_support_ext_cdb(adapter_t *); |
1049 | static mega_passthru* mega_prepare_passthru(adapter_t *, scb_t *, | 1049 | static mega_passthru* mega_prepare_passthru(adapter_t *, scb_t *, |