[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200318110243.GE20730@hirez.programming.kicks-ass.net>
Date: Wed, 18 Mar 2020 12:02:43 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Nick Desaulniers <ndesaulniers@...gle.com>
Cc: kbuild-all@...ts.01.org,
clang-built-linux <clang-built-linux@...glegroups.com>,
Thomas Gleixner <tglx@...utronix.de>,
Josh Poimboeuf <jpoimboe@...hat.com>,
LKML <linux-kernel@...r.kernel.org>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
Masami Hiramatsu <mhiramat@...nel.org>, mbenes@...e.cz,
brgerst@...il.com, kbuild test robot <lkp@...el.com>
Subject: Re: [PATCH v2 19/19] objtool: Detect loading function pointers
across noinstr
On Tue, Mar 17, 2020 at 04:43:47PM -0700, Nick Desaulniers wrote:
> Just needs a `default:` case. From personal experience, this warning
> helps you track down every switch on an enum when you add a new
> enumeration value.
Except of course if those switch statements have a default clause and
still need updating for the new state.
Anyway, I'll go add the silly line.
Powered by blists - more mailing lists