Browse Source

[ATM]: [ambassador] Fix the sparse warning "implicit cast to nocast type"

Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Victor Fusco 20 years ago
parent
commit
5938a7b580
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/atm/ambassador.c

+ 3 - 1
drivers/atm/ambassador.c

@@ -794,7 +794,9 @@ static void drain_rx_pools (amb_dev * dev) {
     drain_rx_pool (dev, pool);
     drain_rx_pool (dev, pool);
 }
 }
 
 
-static inline void fill_rx_pool (amb_dev * dev, unsigned char pool, int priority) {
+static inline void fill_rx_pool (amb_dev * dev, unsigned char pool,
+                                 unsigned int __nocast priority)
+{
   rx_in rx;
   rx_in rx;
   amb_rxq * rxq;
   amb_rxq * rxq;