Return-path: Received: from mail-fx0-f225.google.com ([209.85.220.225]:47822 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185Ab0AMO0W (ORCPT ); Wed, 13 Jan 2010 09:26:22 -0500 Received: by fxm25 with SMTP id 25so213914fxm.21 for ; Wed, 13 Jan 2010 06:26:20 -0800 (PST) Message-ID: <4B4DD808.5080506@lwfinger.net> Date: Wed, 13 Jan 2010 08:26:16 -0600 From: Larry Finger MIME-Version: 1.0 To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= CC: "linux-wireless@vger.kernel.org" , "John W. Linville" , "bcm43xx-dev@lists.berlios.de" Subject: Re: [PATCH 3/3] b43: N-PHY: add RX IQ calculation for rev < 3 References: <4B4DCB39.7030801@lwfinger.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On 01/13/2010 07:38 AM, Rafał Miłecki wrote: > W dniu 13 stycznia 2010 14:31 użytkownik Larry Finger > napisał: >> On 01/12/2010 01:38 PM, Rafał Miłecki wrote: >>> >>> Signed-off-by: Rafał Miłecki >>> --- >>> >>> 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 :) For some reason, I lost my feed from linux-wireless. I found Michael's message in the archives. If I have not responded to any of your private messages, please send them again. I'm not sure if the mail stoppage is general. There is no traffic from other lists as well. Larry