diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-03-20 11:31:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 12:28:59 -0400 |
commit | da2191e31409d1058dcbed44e8f53e39a40e86b3 (patch) | |
tree | 113dd405e6647253d7ae9f8d941207303cdb358b /drivers/net/ethernet/freescale/fec.c | |
parent | 896ee0eee6261e30c3623be931c3f621428947df (diff) |
net: fec: Define indexes as 'unsigned int'
Fix the following warnings that happen when building with W=1 option:
drivers/net/ethernet/freescale/fec.c: In function 'fec_enet_free_buffers':
drivers/net/ethernet/freescale/fec.c:1337:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
drivers/net/ethernet/freescale/fec.c: In function 'fec_enet_alloc_buffers':
drivers/net/ethernet/freescale/fec.c:1361:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
drivers/net/ethernet/freescale/fec.c: In function 'fec_enet_init':
drivers/net/ethernet/freescale/fec.c:1631:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.c')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index e3f39372ce25..911d0253dbb2 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c | |||
@@ -1332,7 +1332,7 @@ static int fec_enet_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd) | |||
1332 | static void fec_enet_free_buffers(struct net_device *ndev) | 1332 | static void fec_enet_free_buffers(struct net_device *ndev) |
1333 | { | 1333 | { |
1334 | struct fec_enet_private *fep = netdev_priv(ndev); | 1334 | struct fec_enet_private *fep = netdev_priv(ndev); |
1335 | int i; | 1335 | unsigned int i; |
1336 | struct sk_buff *skb; | 1336 | struct sk_buff *skb; |
1337 | struct bufdesc *bdp; | 1337 | struct bufdesc *bdp; |
1338 | 1338 | ||
@@ -1356,7 +1356,7 @@ static void fec_enet_free_buffers(struct net_device *ndev) | |||
1356 | static int fec_enet_alloc_buffers(struct net_device *ndev) | 1356 | static int fec_enet_alloc_buffers(struct net_device *ndev) |
1357 | { | 1357 | { |
1358 | struct fec_enet_private *fep = netdev_priv(ndev); | 1358 | struct fec_enet_private *fep = netdev_priv(ndev); |
1359 | int i; | 1359 | unsigned int i; |
1360 | struct sk_buff *skb; | 1360 | struct sk_buff *skb; |
1361 | struct bufdesc *bdp; | 1361 | struct bufdesc *bdp; |
1362 | 1362 | ||
@@ -1598,7 +1598,7 @@ static int fec_enet_init(struct net_device *ndev) | |||
1598 | struct fec_enet_private *fep = netdev_priv(ndev); | 1598 | struct fec_enet_private *fep = netdev_priv(ndev); |
1599 | struct bufdesc *cbd_base; | 1599 | struct bufdesc *cbd_base; |
1600 | struct bufdesc *bdp; | 1600 | struct bufdesc *bdp; |
1601 | int i; | 1601 | unsigned int i; |
1602 | 1602 | ||
1603 | /* Allocate memory for buffer descriptors. */ | 1603 | /* Allocate memory for buffer descriptors. */ |
1604 | cbd_base = dma_alloc_coherent(NULL, PAGE_SIZE, &fep->bd_dma, | 1604 | cbd_base = dma_alloc_coherent(NULL, PAGE_SIZE, &fep->bd_dma, |