[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>
This commit is contained in:
committed by
James Bottomley
parent
39580f2c15
commit
84a3c97b93
@@ -1002,7 +1002,6 @@ static int megaraid_reset(Scsi_Cmnd *);
|
||||
static int megaraid_abort_and_reset(adapter_t *, Scsi_Cmnd *, int);
|
||||
static int megaraid_biosparam(struct scsi_device *, struct block_device *,
|
||||
sector_t, int []);
|
||||
static int mega_print_inquiry(char *, char *);
|
||||
|
||||
static int mega_build_sglist (adapter_t *adapter, scb_t *scb,
|
||||
u32 *buffer, u32 *length);
|
||||
@@ -1024,6 +1023,7 @@ static int mega_init_scb (adapter_t *);
|
||||
static int mega_is_bios_enabled (adapter_t *);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
static int mega_print_inquiry(char *, char *);
|
||||
static void mega_create_proc_entry(int, struct proc_dir_entry *);
|
||||
static int proc_read_config(char *, char **, off_t, int, int *, void *);
|
||||
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 *);
|
||||
static int proc_rdrv_30(char *, char **, off_t, int, int *, void *);
|
||||
static int proc_rdrv_40(char *, char **, off_t, int, int *, void *);
|
||||
static int proc_rdrv(adapter_t *, char *, int, int);
|
||||
#endif
|
||||
|
||||
static int mega_adapinq(adapter_t *, dma_addr_t);
|
||||
static int mega_internal_dev_inquiry(adapter_t *, u8, u8, dma_addr_t);
|
||||
#endif
|
||||
|
||||
static int mega_support_ext_cdb(adapter_t *);
|
||||
static mega_passthru* mega_prepare_passthru(adapter_t *, scb_t *,
|
||||
|
Reference in New Issue
Block a user