net: gianfar: add missing __iomem annotation
authorKevin Hao <haokexin@gmail.com>
Wed, 24 Dec 2014 06:05:45 +0000 (14:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Dec 2014 23:54:15 +0000 (18:54 -0500)
Fix the following spare warning:
drivers/net/ethernet/freescale/gianfar.c:3521:60: warning: incorrect type in argument 1 (different address spaces)
drivers/net/ethernet/freescale/gianfar.c:3521:60:    expected unsigned int [noderef] <asn:2>*addr
drivers/net/ethernet/freescale/gianfar.c:3521:60:    got unsigned int [usertype] *rfbptr
drivers/net/ethernet/freescale/gianfar.c:205:16: warning: incorrect type in assignment (different address spaces)
drivers/net/ethernet/freescale/gianfar.c:205:16:    expected unsigned int [usertype] *rfbptr
drivers/net/ethernet/freescale/gianfar.c:205:16:    got unsigned int [noderef] <asn:2>*<noident>
drivers/net/ethernet/freescale/gianfar.c:2918:44: warning: incorrect type in argument 1 (different address spaces)
drivers/net/ethernet/freescale/gianfar.c:2918:44:    expected unsigned int [noderef] <asn:2>*addr
drivers/net/ethernet/freescale/gianfar.c:2918:44:    got unsigned int [usertype] *rfbptr

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h

index d2a67ed10a3802d4ea2d03b1b61ecf1aa0798154..e54b1e39f9b4fd28e967ceac85f9a460da11da16 100644 (file)
@@ -177,7 +177,7 @@ static int gfar_init_bds(struct net_device *ndev)
        struct gfar_priv_rx_q *rx_queue = NULL;
        struct txbd8 *txbdp;
        struct rxbd8 *rxbdp;
-       u32 *rfbptr;
+       u32 __iomem *rfbptr;
        int i, j;
        dma_addr_t bufaddr;
 
index b581b8823a2a98a0ff8bc82ba71e41da20d1abaf..9e1802400c23686825475e1f198be0864de5a19b 100644 (file)
@@ -1039,7 +1039,7 @@ struct gfar_priv_rx_q {
        /* RX Coalescing values */
        unsigned char rxcoalescing;
        unsigned long rxic;
-       u32 *rfbptr;
+       u32 __iomem *rfbptr;
 };
 
 enum gfar_irqinfo_id {