Skip to content

Commit

Permalink
drivers/net/atl1e: fix sparse warnings: fix signedness
Browse files Browse the repository at this point in the history
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: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 18, 2009
1 parent 18c4c35 commit fd8ef49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/atl1e/atl1e.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ struct atl1e_adapter {
/* All Descriptor memory */
dma_addr_t ring_dma;
void *ring_vir_addr;
int ring_size;
u32 ring_size;

struct atl1e_tx_ring tx_ring;
struct atl1e_rx_ring rx_ring;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/atl1e/atl1e_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

#define ATL1E_PARAM(x, desc) \
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_PARM_DESC(x, desc);

Expand Down

0 comments on commit fd8ef49

Please sign in to comment.