[PATCH] skfp warning fixes
authorAndrew Morton <akpm@osdl.org>
Fri, 17 Mar 2006 07:58:44 +0000 (23:58 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 21 Mar 2006 21:00:53 +0000 (16:00 -0500)
drivers/net/skfp/fplustm.c: In function `enable_formac':
drivers/net/skfp/fplustm.c:552: warning: large integer implicitly truncated to unsigned type
drivers/net/skfp/fplustm.c:555: warning: large integer implicitly truncated to unsigned type

These arguments were changed to `const', so the compiler can now see that it's
doing and outw(..., 0xffffnnnn).  Cast the arg to ushort.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/skfp/fplustm.c

index a4b2b6975d6ce729e75a3c08589058a6a8eece34..0784f558ca9a395e2f36b22fa5e802b16376e9ae 100644 (file)
@@ -549,12 +549,12 @@ void formac_tx_restart(struct s_smc *smc)
 static void enable_formac(struct s_smc *smc)
 {
        /* set formac IMSK : 0 enables irq */
-       outpw(FM_A(FM_IMSK1U),~mac_imsk1u) ;
-       outpw(FM_A(FM_IMSK1L),~mac_imsk1l) ;
-       outpw(FM_A(FM_IMSK2U),~mac_imsk2u) ;
-       outpw(FM_A(FM_IMSK2L),~mac_imsk2l) ;
-       outpw(FM_A(FM_IMSK3U),~mac_imsk3u) ;
-       outpw(FM_A(FM_IMSK3L),~mac_imsk3l) ;
+       outpw(FM_A(FM_IMSK1U),(unsigned short)~mac_imsk1u);
+       outpw(FM_A(FM_IMSK1L),(unsigned short)~mac_imsk1l);
+       outpw(FM_A(FM_IMSK2U),(unsigned short)~mac_imsk2u);
+       outpw(FM_A(FM_IMSK2L),(unsigned short)~mac_imsk2l);
+       outpw(FM_A(FM_IMSK3U),(unsigned short)~mac_imsk3u);
+       outpw(FM_A(FM_IMSK3L),(unsigned short)~mac_imsk3l);
 }
 
 #if 0  /* Removed because the driver should use the ASICs TX complete IRQ. */