[rtems commit] leon3: Open Ethernet Fixed Warning

Joel Sherrill joel at rtems.org
Tue Jan 8 18:32:31 UTC 2013


Module:    rtems
Branch:    master
Commit:    4fd1ccaa3c7f32b16b8512154e8c5187de382a85
Changeset: http://git.rtems.org/rtems/commit/?id=4fd1ccaa3c7f32b16b8512154e8c5187de382a85

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Jan  8 11:58:41 2013 -0600

leon3: Open Ethernet Fixed Warning

---

 .../sparc/leon3/leon_open_eth/leon_open_eth.c      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/leon_open_eth/leon_open_eth.c b/c/src/lib/libbsp/sparc/leon3/leon_open_eth/leon_open_eth.c
index 963264e..f8e700c 100644
--- a/c/src/lib/libbsp/sparc/leon3/leon_open_eth/leon_open_eth.c
+++ b/c/src/lib/libbsp/sparc/leon3/leon_open_eth/leon_open_eth.c
@@ -54,7 +54,7 @@ int rtems_leon_open_eth_driver_attach(
     *(volatile int *) base_addr = 0;
     *(volatile int *) base_addr = 0x800;
     *(volatile int *) base_addr = 0;
-    leon_open_eth_configuration.base_address = base_addr;
+    leon_open_eth_configuration.base_address = (void *) base_addr;
     leon_open_eth_configuration.vector = eth_irq + 0x10;
     leon_open_eth_configuration.txd_count = TDA_COUNT;
     leon_open_eth_configuration.rxd_count = RDA_COUNT;




More information about the vc mailing list