2018-10-02 23:45:50

by Larry Finger

[permalink] [raw]
Subject: Sparse warnings from calls to max3() and max

Hi,

Sparse has suddenly started issuing as many as 11 warnings of "expression using
sizeof(void)" for each call to max3(). There are similar warnings for calls to
max(), thus I think this is the origin of the problem. My sparse version is
20180324-1.3-x86_64 installed in openSUSE Tumbleweed. My kernel is 4.19.0-rc6.

Thanks,

Larry


2018-10-03 20:43:36

by Randy Dunlap

[permalink] [raw]
Subject: Re: Sparse warnings from calls to max3() and max

[adding linux-sparse mailing list]


On 10/2/18 4:44 PM, Larry Finger wrote:
> Hi,
>
> Sparse has suddenly started issuing as many as 11 warnings of "expression using sizeof(void)" for each call to max3(). There are similar warnings for calls to max(), thus I think this is the origin of the problem. My sparse version is 20180324-1.3-x86_64 installed in openSUSE Tumbleweed. My kernel is 4.19.0-rc6.
>
> Thanks,
>
> Larry


--
~Randy

2018-10-03 22:31:43

by Luc Van Oostenryck

[permalink] [raw]
Subject: Re: Sparse warnings from calls to max3() and max

On Tue, Oct 02, 2018 at 06:44:39PM -0500, Larry Finger wrote:
> Hi,
>
> Sparse has suddenly started issuing as many as 11 warnings of
> "expression using sizeof(void)" for each call to max3(). There are
> similar warnings for calls to max(), thus I think this is the origin
> of the problem. My sparse version is 20180324-1.3-x86_64 installed
> in openSUSE Tumbleweed. My kernel is 4.19.0-rc6.

Hi,

This problem is resolved in a more recent version of sparse,
the one you can find at:
git://github.com/lucvoo/sparse-dev

See Linus' email about it:
https://lore.kernel.org/lkml/CA+55aFzYEnZR2GZLR-DwpONjMNYGYoDy+6AWLCVNayWiaZuqoA@mail.gmail.com/T/#u

NB. The official version hosted on kernel.org is not uptodate but
I hope this will solved in a few weeks.

Best regards,
-- Luc Van Oostenryck

2018-10-03 23:40:34

by Larry Finger

[permalink] [raw]
Subject: Re: Sparse warnings from calls to max3() and max

On 10/3/18 5:29 PM, Luc Van Oostenryck wrote:
> On Tue, Oct 02, 2018 at 06:44:39PM -0500, Larry Finger wrote:
>> Hi,
>>
>> Sparse has suddenly started issuing as many as 11 warnings of
>> "expression using sizeof(void)" for each call to max3(). There are
>> similar warnings for calls to max(), thus I think this is the origin
>> of the problem. My sparse version is 20180324-1.3-x86_64 installed
>> in openSUSE Tumbleweed. My kernel is 4.19.0-rc6.
>
> Hi,
>
> This problem is resolved in a more recent version of sparse,
> the one you can find at:
> git://github.com/lucvoo/sparse-dev
>
> See Linus' email about it:
> https://lore.kernel.org/lkml/CA+55aFzYEnZR2GZLR-DwpONjMNYGYoDy+6AWLCVNayWiaZuqoA@mail.gmail.com/T/#u
>
> NB. The official version hosted on kernel.org is not uptodate but
> I hope this will solved in a few weeks.

Thanks. I'll ignore those warnings for now.

Larry