Skip to contentSkip to conversation

floppy driver: make fd_routine static

PATCH New Adrian Bunk 1 participant 1 message Apr 10, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 floppy driver: make fd_routine static

This patch makes the needlessly global fd_routine static.

---

 include/asm-i386/floppy.h   |    2 +-
 include/asm-parisc/floppy.h |    2 +-
 include/asm-sh/floppy.h     |    2 +-
 include/asm-x86_64/floppy.h |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
include/asm-i386/floppy.h renamed from include/asm-i386/floppy.h.old +1 -1
@@ -257,7 +257,7 @@
 	return 0;
 }
 
-struct fd_routine_l {
+static struct fd_routine_l {
 	int (*_request_dma)(unsigned int dmanr, const char * device_id);
 	void (*_free_dma)(unsigned int dmanr);
 	int (*_get_dma_residue)(unsigned int dummy);
include/asm-x86_64/floppy.h renamed from include/asm-x86_64/floppy.h.old +1 -1
@@ -223,7 +223,7 @@
 	return 0;
 }
 
-struct fd_routine_l {
+static struct fd_routine_l {
 	int (*_request_dma)(unsigned int dmanr, const char * device_id);
 	void (*_free_dma)(unsigned int dmanr);
 	int (*_get_dma_residue)(unsigned int dummy);
include/asm-parisc/floppy.h renamed from include/asm-parisc/floppy.h.old +1 -1
@@ -235,7 +235,7 @@
 	return 0;
 }
 
-struct fd_routine_l {
+static struct fd_routine_l {
 	int (*_request_dma)(unsigned int dmanr, const char * device_id);
 	void (*_free_dma)(unsigned int dmanr);
 	int (*_get_dma_residue)(unsigned int dummy);
include/asm-sh/floppy.h renamed from include/asm-sh/floppy.h.old +1 -1
@@ -227,7 +227,7 @@
 	return 0;
 }
 
-struct fd_routine_l {
+static struct fd_routine_l {
 	int (*_request_dma)(unsigned int dmanr, const char * device_id);
 	void (*_free_dma)(unsigned int dmanr);
 	int (*_get_dma_residue)(unsigned int dummy);