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 /drivers/scsi/NCR5380.c | |
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>
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r-- | drivers/scsi/NCR5380.c | 12 |
1 files changed, 7 insertions, 5 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; |