From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 16 Apr 2019 16:13:35 +0200 From: Borislav Petkov Subject: Re: [PATCH v2 1/5] cpu/speculation: Add 'mitigations=' cmdline option Message-ID: <20190416141335.GH31772@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org Message-ID: <20190416141335.y67wtJ3m8fkN-XpvdvDpqRMM1qKZjkvbz7qOljwput8@z> List-Archive: List-Post: To: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Jiri Kosina , Waiman Long , Andrea Arcangeli , Jon Masters , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, Greg Kroah-Hartman , Tyler Hicks , Linus Torvalds , Randy Dunlap , Steven Price , Phil Auld List-ID: On Fri, Apr 12, 2019 at 03:39:28PM -0500, Josh Poimboeuf wrote: > diff --git a/kernel/cpu.c b/kernel/cpu.c > index 38890f62f9a8..aed9083f8eac 100644 > --- a/kernel/cpu.c > +++ b/kernel/cpu.c > @@ -2320,3 +2320,18 @@ void __init boot_cpu_hotplug_init(void) > #endif > this_cpu_write(cpuhp_state.state, CPUHP_ONLINE); > } > + > +enum cpu_mitigations cpu_mitigations __ro_after_init = CPU_MITIGATIONS_AUTO; > + > +static int __init mitigations_cmdline(char *arg) Forgot the verb: "mitigations_parse_cmdline". -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.