Skip to contentSkip to conversation

SCSI sim710.c: make some code static

PATCH New Adrian Bunk 1 participant 1 message Nov 15, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SCSI sim710.c: make some code static

The patch below makes some needlessly global code static.

drivers/scsi/sim710.c renamed from drivers/scsi/sim710.c.old +3 -3
@@ -47,7 +47,7 @@
 #define MAX_SLOTS 8
 static __u8 __initdata id_array[MAX_SLOTS] = { [0 ... MAX_SLOTS-1] = 7 };
 
-char *sim710;		/* command line passed by insmod */
+static char *sim710;		/* command line passed by insmod */
 
 MODULE_AUTHOR("Richard Hirst");
 MODULE_DESCRIPTION("Simple NCR53C710 driver");
@@ -61,7 +61,7 @@
 #define ARG_SEP ','
 #endif
 
-__init int
+static __init int
 param_setup(char *str)
 {
 	char *pos = str, *next;
@@ -314,7 +314,7 @@
 				   differential, scsi_id);
 }
 
-struct eisa_driver sim710_eisa_driver = {
+static struct eisa_driver sim710_eisa_driver = {
 	.id_table		= sim710_eisa_ids,
 	.driver = {
 		.name		= "sim710",