changeset 23057:217694b1c1af

declare variables and functions as static
author ben
date Sun, 22 Apr 2007 15:39:18 +0000
parents e0b4fe583282
children 5366657d357e
files vidix/savage_vid.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/savage_vid.c	Sun Apr 22 15:37:17 2007 +0000
+++ b/vidix/savage_vid.c	Sun Apr 22 15:39:18 2007 +0000
@@ -74,7 +74,7 @@
 /* CR69[0] = 1 : Mem-mapped regs */
 #define USE_MM_FOR_PRI_STREAM_OLD   0x01
 
-void SavageStreamsOn(void);
+static void SavageStreamsOn(void);
 
 /*
  * There are two different streams engines used in the Savage line.
@@ -119,10 +119,10 @@
 /**
  * @brief Information on PCI device.
  */
-pciinfo_t pci_info;
+static pciinfo_t pci_info;
 
-uint8_t *vio;
-uint8_t mclk_save[3];
+static uint8_t *vio;
+static uint8_t mclk_save[3];
 
 #define outb(reg,val)	OUTPORT8(reg,val)
 #define inb(reg)	INPORT8(reg)
@@ -189,7 +189,7 @@
 #define ALIGN_TO(v, n) (((v) + (n-1)) & ~(n-1))
 
 
-void debugout(unsigned int addr, unsigned int val);
+static void debugout(unsigned int addr, unsigned int val);
 
 
 struct savage_chip {
@@ -567,7 +567,7 @@
 
 }
 
-void 
+static void 
 SavageStreamsOn(void)
 {
      unsigned char jStreamsControl;
@@ -1313,7 +1313,7 @@
   return 0;
 }
 
-void debugout(unsigned int addr, unsigned int val){
+static void debugout(unsigned int addr, unsigned int val){
 	return ;
     switch ( addr ){
 	case PSTREAM_CONTROL_REG: