]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
xilinx: Fix compiler warning
authorManuel Schölling <manuel.schoelling@gmx.de>
Sun, 22 Jun 2014 11:24:54 +0000 (13:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jun 2014 00:14:56 +0000 (17:14 -0700)
The time comparsion functions require arguments of type unsigned long
instead of (signed) long.

Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c
drivers/net/ethernet/xilinx/xilinx_emaclite.c

index 4ef818a7a6c623719f0507cfc64b56ef3de709d9..8a6e5c2d6f95a3f2f52f3d9b8148c81fffe7c5d3 100644 (file)
@@ -72,7 +72,7 @@ void temac_iow(struct temac_local *lp, int offset, u32 value)
 
 int temac_indirect_busywait(struct temac_local *lp)
 {
-       long end = jiffies + 2;
+       unsigned long end = jiffies + 2;
 
        while (!(temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK)) {
                if (time_before_eq(end, jiffies)) {
index d4abf478e2bbf6ae25f5925f406d27923b2b949c..3b67d60d43787bb1442c2e7ec1771fd047f461fc 100644 (file)
@@ -19,7 +19,7 @@
 /* Wait till MDIO interface is ready to accept a new transaction.*/
 int axienet_mdio_wait_until_ready(struct axienet_local *lp)
 {
-       long end = jiffies + 2;
+       unsigned long end = jiffies + 2;
        while (!(axienet_ior(lp, XAE_MDIO_MCR_OFFSET) &
                 XAE_MDIO_MCR_READY_MASK)) {
                if (time_before_eq(end, jiffies)) {
index 8c4aed3053ebc0a3a3757dcae408f25249f8e630..782bb9373cd817e366bc1ba914659285863bd4e4 100644 (file)
@@ -695,7 +695,7 @@ static irqreturn_t xemaclite_interrupt(int irq, void *dev_id)
 
 static int xemaclite_mdio_wait(struct net_local *lp)
 {
-       long end = jiffies + 2;
+       unsigned long end = jiffies + 2;
 
        /* wait for the MDIO interface to not be busy or timeout
           after some time.