[PATCH 09/14] erc32/*/erc32sonic.c: Fix warnings

Joel Sherrill joel at rtems.org
Tue Mar 22 14:40:37 UTC 2016


---
 c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c b/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c
index 0226905..f7d7b61 100644
--- a/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c
+++ b/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c
@@ -26,7 +26,7 @@
 #include <stdio.h>
 #endif
 
-void erc32_sonic_write_register(
+static void erc32_sonic_write_register(
   void       *base,
   uint32_t    regno,
   uint32_t    value
@@ -42,7 +42,7 @@ void erc32_sonic_write_register(
   p[regno] = 0x0ffff & value;
 }
 
-uint32_t   erc32_sonic_read_register(
+static uint32_t   erc32_sonic_read_register(
   void       *base,
   uint32_t    regno
 )
@@ -98,12 +98,12 @@ uint32_t   erc32_sonic_read_register(
 #define SONIC_VECTOR 0x1E
 
 sonic_configuration_t erc32_sonic_configuration = {
-  SONIC_BASE_ADDRESS,        /* base address */
-  SONIC_VECTOR,              /* vector number */
-  SONIC_DCR,                 /* DCR register value */
-  SONIC_DC2,                 /* DC2 register value */
-  TDA_COUNT,                 /* number of transmit descriptors */
-  RDA_COUNT,                 /* number of receive descriptors */
+  (void *)SONIC_BASE_ADDRESS, /* base address */
+  SONIC_VECTOR,               /* vector number */
+  SONIC_DCR,                  /* DCR register value */
+  SONIC_DC2,                  /* DC2 register value */
+  TDA_COUNT,                  /* number of transmit descriptors */
+  RDA_COUNT,                  /* number of receive descriptors */
   erc32_sonic_write_register,
   erc32_sonic_read_register
 };
-- 
1.8.3.1




More information about the devel mailing list