Re: [wireless-next:master 70/102] drivers/net/wireless/b43/phy_ht.c:338:35: sparse: cast truncates bits from constant value (ffff3fff becomes 3fff)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I could disable this warning in my reports, but CC sparse authors
first to check if there are more elegant solutions.

On Mon, Sep 15, 2014 at 11:16:09PM +0200, Rafał Miłecki wrote:
> On 15 September 2014 21:50, kbuild test robot <fengguang.wu@xxxxxxxxx> wrote:
> > tree:   git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git master
> > head:   1030f9fe65602465a89beaa05c3343cf9fd68a88
> > commit: 1f21de53ac8651b1a3e79576f1adf00aabecd052 [70/102] b43: HT-PHY: Implement band switching
> > reproduce:
> >   # apt-get install sparse
> >   git checkout 1f21de53ac8651b1a3e79576f1adf00aabecd052
> >   make ARCH=x86_64 allmodconfig
> >   make C=1 CF=-D__CHECK_ENDIAN__
> >
> >
> > sparse warnings: (new ones prefixed by >>)
> >
> >>> drivers/net/wireless/b43/phy_ht.c:338:35: sparse: cast truncates bits from constant value (ffff3fff becomes 3fff)
> >
> > vim +338 drivers/net/wireless/b43/phy_ht.c
> 
> I already got the same sparse warning twice (for different parts of code):
> 
> Message-ID: <53b5ab1e.Y9bKd3t4DteE6Pzc%fengguang.wu@xxxxxxxxx>
> [wireless-next:master 163/164]
> drivers/net/wireless/b43/phy_n.c:5671:55: sparse: cast truncates bits
> from constant value (ffff7fff becomes 7fff)
> 
> Message-ID: <53c97150.9C2t3ebOTkndUZD5%fengguang.wu@xxxxxxxxx>
> [wireless-next:master 70/75] drivers/net/wireless/b43/phy_n.c:6077:35:
> sparse: cast truncates bits from constant value (ffff3fff becomes
> 3fff)
> 
> In both of them I pointed that this is an expected behavior. No other
> solution was proposed.
> 
> Can this test be fixed or disabled?
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux