Re: [PATCH] x86/kernel: remove unneeded dead-store initialization

From: Nick Desaulniers
Date: Wed Apr 07 2021 - 17:32:04 EST


On Wed, Apr 7, 2021 at 12:07 PM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> On Wed, Apr 07, 2021 at 09:03:28PM +0200, Borislav Petkov wrote:
> > On Wed, Apr 07, 2021 at 10:41:26AM -0700, Nick Desaulniers wrote:
> > > You do have clang-tidy installed right? `which clang-tidy`?
>
> Btw, for user convenience, that "clang-analyzer" Makefile target could
> check for the presence of clang-tidy and fail if it is not there, with
> an informative error message. Methinks.

Yes, that's a good idea; we had a similar discussion recently about
what happens if you enable CONFIG_DEBUG_INFO_BTF and don't have pahole
installed. This is very much in the same vein. I've filed
https://github.com/ClangBuiltLinux/linux/issues/1342
to follow up on. Should be a good beginner bug for folks looking to
get started contributing.

--
Thanks,
~Nick Desaulniers