Commit 3d781a02313e9f22923ee919d99e1cf72fd1f468
Committed by
Jeff Garzik
1 parent
09779c6df2
[PATCH] skfp warning fixes
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>
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
drivers/net/skfp/fplustm.c
... | ... | @@ -549,12 +549,12 @@ |
549 | 549 | static void enable_formac(struct s_smc *smc) |
550 | 550 | { |
551 | 551 | /* set formac IMSK : 0 enables irq */ |
552 | - outpw(FM_A(FM_IMSK1U),~mac_imsk1u) ; | |
553 | - outpw(FM_A(FM_IMSK1L),~mac_imsk1l) ; | |
554 | - outpw(FM_A(FM_IMSK2U),~mac_imsk2u) ; | |
555 | - outpw(FM_A(FM_IMSK2L),~mac_imsk2l) ; | |
556 | - outpw(FM_A(FM_IMSK3U),~mac_imsk3u) ; | |
557 | - outpw(FM_A(FM_IMSK3L),~mac_imsk3l) ; | |
552 | + outpw(FM_A(FM_IMSK1U),(unsigned short)~mac_imsk1u); | |
553 | + outpw(FM_A(FM_IMSK1L),(unsigned short)~mac_imsk1l); | |
554 | + outpw(FM_A(FM_IMSK2U),(unsigned short)~mac_imsk2u); | |
555 | + outpw(FM_A(FM_IMSK2L),(unsigned short)~mac_imsk2l); | |
556 | + outpw(FM_A(FM_IMSK3U),(unsigned short)~mac_imsk3u); | |
557 | + outpw(FM_A(FM_IMSK3L),(unsigned short)~mac_imsk3l); | |
558 | 558 | } |
559 | 559 | |
560 | 560 | #if 0 /* Removed because the driver should use the ASICs TX complete IRQ. */ |