]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net/atl1e: fix sparse warnings: fix signedness
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:14:58 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:26:06 +0000 (17:26 -0800)
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>
drivers/net/atl1e/atl1e.h
drivers/net/atl1e/atl1e_param.c

index c49550d507a0b4c9789a46fb275c0efdc00993eb..2bf63b4368e20abdeb844aece0845443454df838 100644 (file)
@@ -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;
index f72abb34b0cd5197389d2f07d880f5432a87679f..b3be59fd3fb594591b18c1c15ce495a9e07faea3 100644 (file)
@@ -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);