aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR5380.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r--drivers/scsi/NCR5380.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c
index 88ea5a1fb606..f8e449a98d29 100644
--- a/drivers/scsi/NCR5380.c
+++ b/drivers/scsi/NCR5380.c
@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i
347 if((r & bit) == val) 347 if((r & bit) == val)
348 return 0; 348 return 0;
349 if(!in_interrupt()) 349 if(!in_interrupt())
350 yield(); 350 cond_resched();
351 else 351 else
352 cpu_relax(); 352 cpu_relax();
353 } 353 }
@@ -357,7 +357,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i
357static struct { 357static 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
578static int __init NCR5380_probe_irq(struct Scsi_Host *instance, int possible) 578static 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
632static void __init NCR5380_print_options(struct Scsi_Host *instance) 633static void __init __maybe_unused
634NCR5380_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);
703static 705static
704char *lprint_opcode(int opcode, char *pos, char *buffer, int length); 706char *lprint_opcode(int opcode, char *pos, char *buffer, int length);
705 707
706static 708static int __maybe_unused NCR5380_proc_info(struct Scsi_Host *instance,
707int 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;