From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7228AC10F13 for ; Tue, 16 Apr 2019 15:33:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B62A2087C for ; Tue, 16 Apr 2019 15:33:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="klm+APWd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B62A2087C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CBbwYAqDTobZAgwmv/O3slEBbNMsxYP45pz4fYbFupw=; b=klm+APWdhWRxfD chVxzgzmNRzTF2HtZSZl84KkFPt/0xS0++0unUv3zP7UmSXwidmfYvbymUfmvhA/u9DFGLu/NjsfY XU7bpMii0HQzn1jZeiTwQOdUHPUMgJYFKBtdyNbuQvwS2DQuMydNAAmdhqf2vBACnLODOytizjoJ3 U7poQJyf/FeyUMHrkaznBj3lMgdNEMcOqn5QFT13X7n7BEb6Ej8XCb3VyZjpXtpLK2me/6DAqF21j B63z0VLDSm06JD4Fnm3W5SyAzR++IqySSZASQQK6j0iroifKKHwkUl9iP3ctErbccTTxC+Su9wCzH 0zmqwam62jhl7Z1e2+rA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGQ5I-0007Dm-W0; Tue, 16 Apr 2019 15:33:20 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hGQ57-00070J-Gs for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2019 15:33:11 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9FB57307DAC4; Tue, 16 Apr 2019 15:32:55 +0000 (UTC) Received: from treble (ovpn-112-50.rdu2.redhat.com [10.10.112.50]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 788FF5D9CA; Tue, 16 Apr 2019 15:32:41 +0000 (UTC) Date: Tue, 16 Apr 2019 10:32:37 -0500 From: Josh Poimboeuf To: Borislav Petkov Subject: Re: [PATCH v2 1/5] cpu/speculation: Add 'mitigations=' cmdline option Message-ID: <20190416153237.ici3ezhy5h5fji22@treble> References: <20190416141335.GH31772@zn.tnic> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190416141335.GH31772@zn.tnic> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 16 Apr 2019 15:33:04 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190416_083309_679666_5352C91A X-CRM114-Status: GOOD ( 16.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Zijlstra , Benjamin Herrenschmidt , Heiko Carstens , Paul Mackerras , "H . Peter Anvin" , Ingo Molnar , Andrea Arcangeli , linux-s390@vger.kernel.org, Michael Ellerman , x86@kernel.org, Will Deacon , Steven Price , Linus Torvalds , Catalin Marinas , Waiman Long , linux-arch@vger.kernel.org, Jon Masters , Jiri Kosina , Andy Lutomirski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Phil Auld , Greg Kroah-Hartman , Randy Dunlap , linux-kernel@vger.kernel.org, Tyler Hicks , Martin Schwidefsky , linuxppc-dev@lists.ozlabs.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 16, 2019 at 04:13:35PM +0200, Borislav Petkov wrote: > 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". Sure. diff --git a/kernel/cpu.c b/kernel/cpu.c index aed9083f8eac..cf9fea42d8fc 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2323,7 +2323,7 @@ void __init boot_cpu_hotplug_init(void) enum cpu_mitigations cpu_mitigations __ro_after_init = CPU_MITIGATIONS_AUTO; -static int __init mitigations_cmdline(char *arg) +static int __init mitigations_parse_cmdline(char *arg) { if (!strcmp(arg, "off")) cpu_mitigations = CPU_MITIGATIONS_OFF; @@ -2334,4 +2334,4 @@ static int __init mitigations_cmdline(char *arg) return 0; } -early_param("mitigations", mitigations_cmdline); +early_param("mitigations", mitigations_parse_cmdline); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel