[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181122143201.d7vifhlny7gmrhzd@ltop.local>
Date: Thu, 22 Nov 2018 15:32:02 +0100
From: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Kees Cook <keescook@...omium.org>,
Josh Triplett <josh@...htriplett.org>,
Alexei Starovoitov <ast@...nel.org>,
linux-kernel@...r.kernel.org, NeilBrown <neilb@...e.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Ingo Molnar <mingo@...nel.org>, Crt Mori <cmo@...exis.com>,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [PATCH v4 1/3] kernel.h: disable type-checks in container_of()
for Sparse
On Thu, Nov 22, 2018 at 12:14:20PM +0900, Masahiro Yamada wrote:
> When I tried to enable BUILD_BUG_ON for Sparse, the kbuild test robot
> reported lots of "unknown expression" warnings from container_of(),
> which seemed false positive.
>
> I addressed this in [1], but fixing Sparse is the right thing to do.
>
> The issue was fixed by Sparse commit 0eb8175d3e9c ("fix expansion of
> function designator"), but it will take time until the fixed version
> of Sparse is widely available.
>
> Disable the container_of() type checks for Sparse for now.
I would prefer that developers upgrade their version of sparse but ...
Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Powered by blists - more mailing lists