From: Adrian Bunk <bunk@stusta.de>
To: James.Bottomley@SteelEye.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/scsi/NCR53C9x.c: make a struct static
Date: Sun, 24 Apr 2005 00:10:08 +0200 [thread overview]
Message-ID: <20050423221008.GG4355@stusta.de> (raw)
This patch makes a needlessly global struct static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/scsi/NCR53C9x.c | 2 +-
drivers/scsi/sun3x_esp.c | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
--- linux-2.6.12-rc2-mm3-full/drivers/scsi/sun3x_esp.c.old 2005-04-23 21:44:01.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/scsi/sun3x_esp.c 2005-04-23 21:44:07.000000000 +0200
@@ -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);
--- linux-2.6.12-rc2-mm3-full/drivers/scsi/NCR53C9x.c.old 2005-04-23 21:44:22.000000000 +0200
+++ linux-2.6.12-rc2-mm3-full/drivers/scsi/NCR53C9x.c 2005-04-23 21:44:30.000000000 +0200
@@ -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);
reply other threads:[~2005-04-23 22:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050423221008.GG4355@stusta.de \
--to=bunk@stusta.de \
--cc=James.Bottomley@SteelEye.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.