Commit fd8ef49e authored by Hannes Eder's avatar Hannes Eder Committed by David S. Miller

drivers/net/atl1e: fix sparse warnings: fix signedness

Fix this sparse warnings:
  drivers/net/atl1e/atl1e_main.c:716:39: warning: incorrect type in argument 2 (different signedness)
  drivers/net/atl1e/atl1e_param.c:57:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atl1e/atl1e_param.c:68:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atl1e/atl1e_param.c:81:1: warning: incorrect type in initializer (different signedness)
  drivers/net/atl1e/atl1e_param.c:92:1: warning: incorrect type in initializer (different signedness)
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18c4c35e
...@@ -448,7 +448,7 @@ struct atl1e_adapter { ...@@ -448,7 +448,7 @@ struct atl1e_adapter {
/* All Descriptor memory */ /* All Descriptor memory */
dma_addr_t ring_dma; dma_addr_t ring_dma;
void *ring_vir_addr; void *ring_vir_addr;
int ring_size; u32 ring_size;
struct atl1e_tx_ring tx_ring; struct atl1e_tx_ring tx_ring;
struct atl1e_rx_ring rx_ring; struct atl1e_rx_ring rx_ring;
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#define ATL1E_PARAM(x, desc) \ #define ATL1E_PARAM(x, desc) \
static int __devinitdata x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \ static int __devinitdata x[ATL1E_MAX_NIC + 1] = ATL1E_PARAM_INIT; \
static int num_##x; \ static unsigned int num_##x; \
module_param_array_named(x, x, int, &num_##x, 0); \ module_param_array_named(x, x, int, &num_##x, 0); \
MODULE_PARM_DESC(x, desc); MODULE_PARM_DESC(x, desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment