public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: akpm@osdl.org, linux-scsi@vger.kernel.org, James.Bottomley@steeleye.com
Subject: [PATCH 1/3] [SCSI] aic7xxx: mark ahd_pci_ident_table and ahd_num_pci_devs static
Date: Tue, 26 Sep 2006 10:06:52 +0200	[thread overview]
Message-ID: <1159258012251@messid.opensource.sf-tec.de> (raw)
In-Reply-To: <11592580111076@messid.opensource.sf-tec.de>

[SCSI] aic7xxx: mark ahd_pci_ident_table and ahd_num_pci_devs static

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>

---
commit c083dac8517da8e3a2b0dfa1e2ac9166638cfc76
tree 5b568d88875ff46634752dd3889ed968f0543fc2
parent d3df850ce80c56524cdb7d31695d04490b7d012b
author Rolf Eike Beer <eike-kernel@sf-tec.de> Thu, 06 Jul 2006 13:31:23 +0200
committer Rolf Eike Beer <beer@siso-eb-i34d.silicon-software.de> Thu, 06 Jul 2006 14:17:15 +0200

 drivers/scsi/aic7xxx/aic79xx.h     |    2 --
 drivers/scsi/aic7xxx/aic79xx_pci.c |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h
index df3346b..d3b93cc 100644
--- a/drivers/scsi/aic7xxx/aic79xx.h
+++ b/drivers/scsi/aic7xxx/aic79xx.h
@@ -1320,8 +1320,6 @@ struct ahd_pci_identity {
 	char			*name;
 	ahd_device_setup_t	*setup;
 };
-extern struct ahd_pci_identity ahd_pci_ident_table [];
-extern const u_int ahd_num_pci_devs;
 
 /***************************** VL/EISA Declarations ***************************/
 struct aic7770_identity {
diff --git a/drivers/scsi/aic7xxx/aic79xx_pci.c b/drivers/scsi/aic7xxx/aic79xx_pci.c
index 14850f3..c95f06b 100644
--- a/drivers/scsi/aic7xxx/aic79xx_pci.c
+++ b/drivers/scsi/aic7xxx/aic79xx_pci.c
@@ -97,7 +97,7 @@ static ahd_device_setup_t ahd_aic7901A_s
 static ahd_device_setup_t ahd_aic7902_setup;
 static ahd_device_setup_t ahd_aic790X_setup;
 
-struct ahd_pci_identity ahd_pci_ident_table [] =
+static const struct ahd_pci_identity ahd_pci_ident_table [] =
 {
 	/* aic7901 based controllers */
 	{
@@ -201,7 +201,7 @@ struct ahd_pci_identity ahd_pci_ident_ta
 	}
 };
 
-const u_int ahd_num_pci_devs = ARRAY_SIZE(ahd_pci_ident_table);
+static const u_int ahd_num_pci_devs = ARRAY_SIZE(ahd_pci_ident_table);
 		
 #define	DEVCONFIG		0x40
 #define		PCIXINITPAT	0x0000E000ul


  parent reply	other threads:[~2006-09-26  8:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26  8:06 [PATCH 0/3] [SCSI] Small scsi fixes and cleanups Rolf Eike Beer
2006-09-26  8:06 ` [PATCH 2/3] [SCSI] remove extra newline from info message Rolf Eike Beer
2006-09-26  8:06 ` Rolf Eike Beer [this message]
2006-09-26  8:06 ` [PATCH 3/3] Fix scsi/scsi_transport.h compile error Rolf Eike Beer

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=1159258012251@messid.opensource.sf-tec.de \
    --to=eike-kernel@sf-tec.de \
    --cc=James.Bottomley@steeleye.com \
    --cc=akpm@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox