linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] SCSI NCR_D700.c: make some code static
@ 2004-11-15  2:19 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2004-11-15  2:19 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, linux-kernel

The patch below makes some needlessly global code static.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc1-mm5-full/drivers/scsi/NCR_D700.c.old	2004-11-13 16:32:50.000000000 +0100
+++ linux-2.6.10-rc1-mm5-full/drivers/scsi/NCR_D700.c	2004-11-13 16:45:48.000000000 +0100
@@ -106,7 +106,9 @@
 #include "53c700.h"
 #include "NCR_D700.h"
 
-char *NCR_D700;			/* command line from insmod */
+#ifdef MODULE
+static char *NCR_D700;		/* command line from insmod */
+#endif
 
 MODULE_AUTHOR("James Bottomley");
 MODULE_DESCRIPTION("NCR Dual700 SCSI Driver");
@@ -352,7 +354,7 @@
 
 static short NCR_D700_id_table[] = { NCR_D700_MCA_ID, 0 };
 
-struct mca_driver NCR_D700_driver = {
+static struct mca_driver NCR_D700_driver = {
 	.id_table = NCR_D700_id_table,
 	.driver = {
 		.name		= "NCR_D700",


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] SCSI NCR_D700.c: make some code static
@ 2005-02-27  0:55 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-02-27  0:55 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, linux-kernel

This patch makes some needlessly global code static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.11-rc4-mm1-full/drivers/scsi/NCR_D700.c.old	2005-02-27 01:03:50.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/scsi/NCR_D700.c	2005-02-27 01:04:25.000000000 +0100
@@ -106,7 +106,7 @@
 #include "53c700.h"
 #include "NCR_D700.h"
 
-char *NCR_D700;			/* command line from insmod */
+static char *NCR_D700;		/* command line from insmod */
 
 MODULE_AUTHOR("James Bottomley");
 MODULE_DESCRIPTION("NCR Dual700 SCSI Driver");
@@ -352,7 +352,7 @@
 
 static short NCR_D700_id_table[] = { NCR_D700_MCA_ID, 0 };
 
-struct mca_driver NCR_D700_driver = {
+static struct mca_driver NCR_D700_driver = {
 	.id_table = NCR_D700_id_table,
 	.driver = {
 		.name		= "NCR_D700",


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-27  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-15  2:19 [2.6 patch] SCSI NCR_D700.c: make some code static Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-02-27  0:55 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).