Message ID | 9e913c461707372017d8b9a53491dc8dcaff07dd.1692580085.git.jpoimboe@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2872491vqi; Mon, 21 Aug 2023 02:02:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHLxVJRkYjsLCO3K++1gsXj5Kypkm+1SDCWZZrcwnH3cE6/SI8pv+C2S0DtErCsg6fPkHPl X-Received: by 2002:a05:6358:9995:b0:139:bbae:1f3 with SMTP id j21-20020a056358999500b00139bbae01f3mr5791597rwb.3.1692608540309; Mon, 21 Aug 2023 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692608540; cv=none; d=google.com; s=arc-20160816; b=R1PO8Sy65fF0vqdgnE6KzMAVB6JcTZSPcI6PgKsYyVvtG7WergMVZUR61N2mGn0JjZ Ib8piwqTFmclbUpXFcrUGF4nRlVs3npx357BXNMtdoKdSNYPCKFi7evOcdVJEbMEv1pA AT8bhetK1xgYRdDFLozEnX7bmgw+KWzjY9Psc3+n6enPey4Ma3ROXm6ZvQ5nryX5UBkM EnNaIFfepXyb3w/E0PalSYOvZOxEM/KcTDxTWQmBcPZfRapp65iM3ZhyYt3B7HWlBcqv f27IOfR+jd8RdAWvjE96SdjSNu+PwCWQO/xSUBBDG/oGa5Jgj9bf5PAyvxyKEEfOM724 ucKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z0/rY5B4XZUfsGhO18u+SSDC6llrrhTh+sGPNS59CpM=; fh=1KVrD/LnRsN9N7k2d12iARV4DA2tVMW012QtKSrD46c=; b=e/0RFw6FxidNSW58/UkZte/NXxGZsT7B3tAhq1wISmoIt975FXAfiPOoSy9O66Y0Jn vVz/gOYl2aVz+27muk8/h1u6pVKCFLLLY+qRcKh7iksL4/7rC2M6XlcN30z0sSmsEtDo 3JBe9OHTujELlG5J+JlzwDs0PQiVEO1NizPAXhLv7LFZk0RDfywsL0p6BGa0Cb07/KGv d6tHkNNe9Tmt+sPXtIvjiRXrEybRmjArukEPR+6ZqxuLH4YcTgi45My0osElkehnBC44 9QF3z9ZSKx/SzzJrobyaoxE5CcG8rEF4g14nnIJJuuplhrvKYjrpErCnD7xzTFHashz0 kLpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F59GOysq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg26-20020a056a02011a00b005649974da2bsi7108290pgb.526.2023.08.21.02.01.52; Mon, 21 Aug 2023 02:02:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F59GOysq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232322AbjHUBTo (ORCPT <rfc822;chiang.bai@gmail.com> + 99 others); Sun, 20 Aug 2023 21:19:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231990AbjHUBTd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 20 Aug 2023 21:19:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52B4FA2 for <linux-kernel@vger.kernel.org>; Sun, 20 Aug 2023 18:19:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E3CAA62600 for <linux-kernel@vger.kernel.org>; Mon, 21 Aug 2023 01:19:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4D69C433C8; Mon, 21 Aug 2023 01:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692580771; bh=7OD1zp7lr2PeEyb0O+J7TBAKnhNO6d4kRxvr1UurTik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F59GOysqAGXkeXnL9vWGqNksVL1+q5aWBxtkN2TbI5k/4dOczZ6gZ/Fwtr7oUAms1 B7kPx6ahvKp1ZOt9BY+ncB1OayolammlpJ9PcUmb6fzYKFDsW8IRHLksK1eTLpyZn1 Y7ocf0BSyvXfbavZc3/PeR2jB6DyCabXybUuiuk1WbVG8vCxjQr7D2aoVqrFMnjarw OIOOXBIEgm3lz+tz3kAyBexX1od7rgNME6nzSecq0wL/5C6A/iEVMuXdDceZaiBbYv Zz5AVsH5SK3DSAuZDpvcsU8oFvz7H98k0r8HPcDkhMdXSiNbqSmL4uixEpKj8YvqRQ R5Zx5N2NKC5Mw== From: Josh Poimboeuf <jpoimboe@kernel.org> To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Borislav Petkov <bp@alien8.de>, Peter Zijlstra <peterz@infradead.org>, Babu Moger <babu.moger@amd.com>, Paolo Bonzini <pbonzini@redhat.com>, Sean Christopherson <seanjc@google.com>, David.Kaplan@amd.com, Andrew Cooper <andrew.cooper3@citrix.com>, Nikolay Borisov <nik.borisov@suse.com>, gregkh@linuxfoundation.org, Thomas Gleixner <tglx@linutronix.de> Subject: [PATCH 07/22] x86/srso: Remove default case in srso_select_mitigation() Date: Sun, 20 Aug 2023 18:19:04 -0700 Message-ID: <9e913c461707372017d8b9a53491dc8dcaff07dd.1692580085.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <cover.1692580085.git.jpoimboe@kernel.org> References: <cover.1692580085.git.jpoimboe@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774828692757347893 X-GMAIL-MSGID: 1774828692757347893 |
Series |
SRSO fixes/cleanups
|
|
Commit Message
Josh Poimboeuf
Aug. 21, 2023, 1:19 a.m. UTC
Remove the default case so a compiler warning gets printed if we forget
one of the enums.
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
---
arch/x86/kernel/cpu/bugs.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 579e06655613..cda4b5e6a362 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -2485,9 +2485,6 @@ static void __init srso_select_mitigation(void) pr_err("WARNING: kernel not compiled with CPU_SRSO.\n"); } break; - - default: - break; } pr_info("%s%s\n", srso_strings[srso_mitigation], (has_microcode ? "" : ", no microcode"));