[staging:staging-next 127/127] drivers/staging/wfx/bh.c:88:32: sparse: warning: restricted __le16 degrades to integer

Jérôme Pouiller Jerome.Pouiller at silabs.com
Wed Apr 15 09:40:55 UTC 2020


On Tuesday 14 April 2020 12:13:15 CEST Greg Kroah-Hartman wrote:
> On Tue, Apr 14, 2020 at 05:55:15PM +0800, kbuild test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
> > head:   ce920326663b3df22c94ade99a8b234baa6ccaa5
> > commit: ce920326663b3df22c94ade99a8b234baa6ccaa5 [127/127] staging: vt6656: formulate rspinf values into tables
> > reproduce:
> >         # apt-get install sparse
> >         # sparse version:
> >         git checkout ce920326663b3df22c94ade99a8b234baa6ccaa5
> >         make ARCH=x86_64 allmodconfig
> >         make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
> >
> > If you fix the issue, kindly add following tag as appropriate
> > Reported-by: kbuild test robot <lkp at intel.com>
> 
> I don't think that the warning you point out here, is caused by the
> patch you say.  Please fix up on the 0-day side...


The warning is probably caused by:

    staging: wfx: fix endianness of hif API

    The chip expects little endian in all structs it sends/receives. This
    patch fixes the hif API to reflect this fact. Sparse should now report
    meaningful errors.

And indeed, Sparse now reports ton of errors :). I am currently working
on these warnings. I hope to provide a patch soon.


-- 
Jérôme Pouiller



More information about the devel mailing list