[PATCH 082/111] LEON: OCCAN driver warnings fixes
Daniel Hellstrom
daniel at gaisler.com
Thu Feb 26 16:39:24 UTC 2015
---
c/src/lib/libbsp/sparc/shared/can/occan.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/can/occan.c b/c/src/lib/libbsp/sparc/shared/can/occan.c
index 8ce6a66..b9050cd 100644
--- a/c/src/lib/libbsp/sparc/shared/can/occan.c
+++ b/c/src/lib/libbsp/sparc/shared/can/occan.c
@@ -280,7 +280,7 @@ static rtems_driver_address_table occan_driver = OCCAN_DRIVER_TABLE_ENTRY;
#define READ_REG(priv, address) occan_reg_read(priv, (unsigned int)address)
#define WRITE_REG(priv, address, data) occan_reg_write(priv, (unsigned int)address, data)
-unsigned int occan_reg_read(occan_priv *priv, unsigned int address)
+static unsigned int occan_reg_read(occan_priv *priv, unsigned int address)
{
unsigned int adr;
if ( priv->byte_regs ) {
@@ -292,7 +292,10 @@ unsigned int occan_reg_read(occan_priv *priv, unsigned int address)
return *(volatile unsigned char *)adr;
}
-void occan_reg_write(occan_priv *priv, unsigned int address, unsigned char value)
+static void occan_reg_write(
+ occan_priv *priv,
+ unsigned int address,
+ unsigned char value)
{
unsigned int adr;
if ( priv->byte_regs ) {
--
1.7.0.4
More information about the devel
mailing list