Skip to contentSkip to conversation

drivers/scsi/NCR53C9x.c: make a struct static

PATCH New Adrian Bunk 1 participant 1 message Apr 23, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/scsi/NCR53C9x.c: make a struct static

This patch makes a needlessly global struct static.

---

 drivers/scsi/NCR53C9x.c  |    2 +-
 drivers/scsi/sun3x_esp.c |    2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/scsi/sun3x_esp.c renamed from drivers/scsi/sun3x_esp.c.old +0 -2
@@ -23,8 +23,6 @@
 #include <asm/dvma.h>
 #include <asm/irq.h>
 
-extern struct NCR_ESP *espchain;
-
 static void dma_barrier(struct NCR_ESP *esp);
 static int  dma_bytes_sent(struct NCR_ESP *esp, int fifo_count);
 static int  dma_can_transfer(struct NCR_ESP *esp, Scsi_Cmnd *sp);
drivers/scsi/NCR53C9x.c renamed from drivers/scsi/NCR53C9x.c.old +1 -1
@@ -94,7 +94,7 @@
 };
 
 /* The master ring of all esp hosts we are managing in this driver. */
-struct NCR_ESP *espchain;
+static struct NCR_ESP *espchain;
 int nesps = 0, esps_in_use = 0, esps_running = 0;
 
 irqreturn_t esp_intr(int irq, void *dev_id, struct pt_regs *pregs);