W dniu 13 stycznia 2010 14:31 użytkownik Larry Finger <[email protected]> napisał: > On 01/12/2010 01:38 PM, Rafał Miłecki wrote: >> >> Signed-off-by: Rafał Miłecki <[email protected]> >> --- >> >> Uh, bigger one. This patch causes false warning: >> drivers/net/wireless/b43/phy_n.c: In function ‘b43_nphy_rev2_cal_rx_iq’: >> drivers/net/wireless/b43/phy_n.c:627: warning: large integer implicitly >> truncated to unsigned type >> >> That's for: >> b43_phy_maskset(dev, B43_NPHY_RFSEQCA, ~B43_NPHY_RFSEQCA_RXDIS, ((1 - i) << >> B43_NPHY_RFSEQCA_RXDIS_SHIFT)); >> >> It's inside loop i=0,1. I tried casting i on (u8) but this didn't help. Can >> we leave this? Or can sb share some trick to avoid this warning? > > It is ~B43_NPHY_RFSEQCA_RXDIS, not i, that causes the warning. Change the > statement to > > b43_phy_maskset(dev, B43_NPHY_RFSEQCA, (u16)(~B43_NPHY_RFSEQCA_RXDIS), > ((1 - i) << B43_NPHY_RFSEQCA_RXDIS_SHIFT));
Yeah, Michael already pointed that :) -- Rafał _______________________________________________ Bcm43xx-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
