diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-05-23 17:41:56 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-24 10:13:25 -0400 |
commit | 702809ce9b1e91400826ec2ff203c06fdad36034 (patch) | |
tree | fb8b9113d832ba8a67758c7275f9b2f8ab4d6ba8 | |
parent | 476834c25a04025d895f64d42affcd31bfb318cc (diff) |
[SCSI] ncr5380 warning fixes
squish these:
drivers/scsi/NCR5380.c:360: warning: 'phases' defined but not used
drivers/scsi/NCR5380.c:360: warning: 'phases' defined but not used
drivers/scsi/NCR5380.c:633: warning: 'NCR5380_print_options' defined but not used
drivers/scsi/NCR5380.c:708: warning: 'NCR5380_proc_info' defined but not used
drivers/scsi/NCR5380.c:360: warning: 'phases' defined but not used
drivers/scsi/NCR5380.c:579: warning: 'NCR5380_probe_irq' defined but not used
drivers/scsi/NCR5380.c:360: warning: 'phases' defined but not used
drivers/scsi/NCR5380.c:708: warning: 'notyet_generic_proc_info' defined but not used
drivers/scsi/NCR5380.c:708: warning: 'notyet_generic_proc_info' defined but not used
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/NCR5380.c | 12 | ||||
-rw-r--r-- | drivers/scsi/NCR5380.h | 6 |
2 files changed, 10 insertions, 8 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 18359f6372f7..37de6b37b084 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c | |||
@@ -357,7 +357,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i | |||
357 | static struct { | 357 | static struct { |
358 | unsigned char value; | 358 | unsigned char value; |
359 | const char *name; | 359 | const char *name; |
360 | } phases[] = { | 360 | } phases[] __maybe_unused = { |
361 | {PHASE_DATAOUT, "DATAOUT"}, | 361 | {PHASE_DATAOUT, "DATAOUT"}, |
362 | {PHASE_DATAIN, "DATAIN"}, | 362 | {PHASE_DATAIN, "DATAIN"}, |
363 | {PHASE_CMDOUT, "CMDOUT"}, | 363 | {PHASE_CMDOUT, "CMDOUT"}, |
@@ -575,7 +575,8 @@ static irqreturn_t __init probe_intr(int irq, void *dev_id) | |||
575 | * Locks: none, irqs must be enabled on entry | 575 | * Locks: none, irqs must be enabled on entry |
576 | */ | 576 | */ |
577 | 577 | ||
578 | static int __init NCR5380_probe_irq(struct Scsi_Host *instance, int possible) | 578 | static int __init __maybe_unused NCR5380_probe_irq(struct Scsi_Host *instance, |
579 | int possible) | ||
579 | { | 580 | { |
580 | NCR5380_local_declare(); | 581 | NCR5380_local_declare(); |
581 | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; | 582 | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
@@ -629,7 +630,8 @@ static int __init NCR5380_probe_irq(struct Scsi_Host *instance, int possible) | |||
629 | * Locks: none | 630 | * Locks: none |
630 | */ | 631 | */ |
631 | 632 | ||
632 | static void __init NCR5380_print_options(struct Scsi_Host *instance) | 633 | static void __init __maybe_unused |
634 | NCR5380_print_options(struct Scsi_Host *instance) | ||
633 | { | 635 | { |
634 | printk(" generic options" | 636 | printk(" generic options" |
635 | #ifdef AUTOPROBE_IRQ | 637 | #ifdef AUTOPROBE_IRQ |
@@ -703,8 +705,8 @@ char *lprint_command(unsigned char *cmd, char *pos, char *buffer, int len); | |||
703 | static | 705 | static |
704 | char *lprint_opcode(int opcode, char *pos, char *buffer, int length); | 706 | char *lprint_opcode(int opcode, char *pos, char *buffer, int length); |
705 | 707 | ||
706 | static | 708 | static int __maybe_unused NCR5380_proc_info(struct Scsi_Host *instance, |
707 | int NCR5380_proc_info(struct Scsi_Host *instance, char *buffer, char **start, off_t offset, int length, int inout) | 709 | char *buffer, char **start, off_t offset, int length, int inout) |
708 | { | 710 | { |
709 | char *pos = buffer; | 711 | char *pos = buffer; |
710 | struct NCR5380_hostdata *hostdata; | 712 | struct NCR5380_hostdata *hostdata; |
diff --git a/drivers/scsi/NCR5380.h b/drivers/scsi/NCR5380.h index 713a108c02ef..bccf13f71532 100644 --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h | |||
@@ -299,7 +299,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance); | |||
299 | static irqreturn_t NCR5380_intr(int irq, void *dev_id); | 299 | static irqreturn_t NCR5380_intr(int irq, void *dev_id); |
300 | #endif | 300 | #endif |
301 | static void NCR5380_main(struct work_struct *work); | 301 | static void NCR5380_main(struct work_struct *work); |
302 | static void NCR5380_print_options(struct Scsi_Host *instance); | 302 | static void __maybe_unused NCR5380_print_options(struct Scsi_Host *instance); |
303 | #ifdef NDEBUG | 303 | #ifdef NDEBUG |
304 | static void NCR5380_print_phase(struct Scsi_Host *instance); | 304 | static void NCR5380_print_phase(struct Scsi_Host *instance); |
305 | static void NCR5380_print(struct Scsi_Host *instance); | 305 | static void NCR5380_print(struct Scsi_Host *instance); |
@@ -307,8 +307,8 @@ static void NCR5380_print(struct Scsi_Host *instance); | |||
307 | static int NCR5380_abort(Scsi_Cmnd * cmd); | 307 | static int NCR5380_abort(Scsi_Cmnd * cmd); |
308 | static int NCR5380_bus_reset(Scsi_Cmnd * cmd); | 308 | static int NCR5380_bus_reset(Scsi_Cmnd * cmd); |
309 | static int NCR5380_queue_command(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)); | 309 | static int NCR5380_queue_command(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)); |
310 | static int NCR5380_proc_info(struct Scsi_Host *instance, char *buffer, char **start, | 310 | static int __maybe_unused NCR5380_proc_info(struct Scsi_Host *instance, |
311 | off_t offset, int length, int inout); | 311 | char *buffer, char **start, off_t offset, int length, int inout); |
312 | 312 | ||
313 | static void NCR5380_reselect(struct Scsi_Host *instance); | 313 | static void NCR5380_reselect(struct Scsi_Host *instance); |
314 | static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag); | 314 | static int NCR5380_select(struct Scsi_Host *instance, Scsi_Cmnd * cmd, int tag); |