Module: xenomai-gch
Branch: next
Commit: 4488bb525ba9aaa6cccc1aefa74d295d18627da5
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=4488bb525ba9aaa6cccc1aefa74d295d18627da5

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Nov  8 13:23:31 2015 +0100

cobalt/rtnet: smc91111: fix compilation warnings

---

 kernel/drivers/net/drivers/smc91111.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/drivers/net/drivers/smc91111.c 
b/kernel/drivers/net/drivers/smc91111.c
index f2c32b4..07e1596 100644
--- a/kernel/drivers/net/drivers/smc91111.c
+++ b/kernel/drivers/net/drivers/smc91111.c
@@ -729,7 +729,7 @@ static void smc_hardware_send_packet( struct rtnet_device * 
dev )
        struct rtskb *  skb = lp->saved_skb;
        word                    length;
        unsigned short          ioaddr;
-       byte                    * buf;
+       void                    * buf;
        rtdm_lockctx_t          context;
 
        PRINTK3("%s:smc_hardware_send_packet\n", dev->name);
@@ -799,7 +799,7 @@ static void smc_hardware_send_packet( struct rtnet_device * 
dev )
        if ( (length & 1) == 0 ) {
                outw( 0, ioaddr + DATA_REG );
        } else {
-               outb( buf[length -1 ], ioaddr + DATA_REG );
+               outb( ((char *)buf)[length -1 ], ioaddr + DATA_REG );
                outb( 0x20, ioaddr + DATA_REG); // Set odd bit in CONTROL BYTE
        }
 
@@ -1366,7 +1366,7 @@ static inline void smc_rcv(struct rtnet_device *dev)
        if ( !(status & RS_ERRORS ) ){
                /* do stuff to make a new packet */
                struct rtskb  * skb;
-               byte            * data;
+               void            * data;
 
                /* set multicast stats */
                if ( status & RS_MULTICAST )


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to