Re: Sparse warnings from calls to max3() and max

From: Luc Van Oostenryck
Date: Wed Oct 03 2018 - 18:29:59 EST


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@xxxxxxxxxxxxxx/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