Re: [PATCH v3] sparse: add -Wpointer-arith flag to toggle sizeof(void) warnings

From: Luc Van Oostenryck
Date: Tue Apr 10 2018 - 15:42:23 EST


On Mon, Apr 09, 2018 at 03:02:04PM -1000, Joey Pabalinas wrote:
> Recent changes to the min()/max() macros in include/linux/kernel.h
> have added a lot of noise when compiling the kernel with Sparse checking
> enabled. This mostly is due to the *huge* increase in the number of
> sizeof(void) warnings, a larger number of which can safely be ignored.
>

Thank you very much.

There is just a problem with the test but it's my fault as I
pointed to you to my tree but the master tree lack a lot of fixes
and have problems when dereferencing function pointers.
So, for the master tree, I propose to use a version with these
tests removed:
git://github.com/lucvoo/sparse-dev.git pointer-arith-v3

Cheers,
-- Luc