Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp469361imw; Thu, 14 Jul 2022 05:05:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1suy46rQf3GuJL0cAWSrvaG/yrAffTvOk+tIXRXvqZ2rZrH4yddPgVgT3b676mnQnn2FORu X-Received: by 2002:a17:903:31c9:b0:16c:3024:69c4 with SMTP id v9-20020a17090331c900b0016c302469c4mr8165357ple.81.1657800359733; Thu, 14 Jul 2022 05:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657800359; cv=none; d=google.com; s=arc-20160816; b=qCzRHHRNozxgNEEB/zJlDDBrdOFyVcW5hZWdVxgdo2tqpkrRa/ID64MfoEc3fsWHTV AoqdbLgv6N8toYd7uFYYSOLHL0PvcxXHZdAni4w5+d/y3eqQLqFtMpWtm1ELZqZeBjQd cGclWOQYNlRfFLsp67851B8wXJgwicyMTjQpjIT4FTi2UwKaA2VXlzo8w8DV0T4tPaf6 EPSMj89mlyFEOeYreU5BjnpwlcJmUaUGNnoR7iJq772cKrvqyH9g7ic83tu4cpcSiso5 C+cSK/lD5aUGHSQ2ko5ShQcCDcQgZNCqqu+fn3Z1sKLNgvEQ6o779wb9xOcAKa4UOYK1 biaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=pHbjtE2rRok+PDLTLfeXHRG66lZG1VHrYTg2Mc7KRmA=; b=SLtOxouGA29pFhRQohO7JctlF2qhq4Jm/8x51pBo68Kh+TH2mcYmwwqG4ZMZ38Gvze UDyMkm+wm3SdPXujqoEbn6OdoWdGqfJW1/AZRU3K1peBRX4pjZn18s54kR+Cq8/JxK9M qaLnYeDkntjV/1xzFHc92axXod9kSX61gF6hr6A/TzSJr9xh6d7mXD07WeV17kKkv4e/ 5n6cPnCsCI9wI02WdFFpAz8QlpmLkOPemwex0MWNXdMEuDycPckJP0OStfBenoxyJwAs n8A4BhOjnmTuEzSQXqtdwT1ynATvb607qILywK+qg2Mxrxa/ZLwXqzEyWPIMzZk6xqv8 8QUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=l0o0mGVE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="K//a577L"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j66-20020a625545000000b0052ab81e9278si2085701pfb.26.2022.07.14.05.05.46; Thu, 14 Jul 2022 05:05:59 -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=@linutronix.de header.s=2020 header.b=l0o0mGVE; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="K//a577L"; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238284AbiGNLIo (ORCPT + 99 others); Thu, 14 Jul 2022 07:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238260AbiGNLIg (ORCPT ); Thu, 14 Jul 2022 07:08:36 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A80E89; Thu, 14 Jul 2022 04:08:34 -0700 (PDT) Date: Thu, 14 Jul 2022 11:08:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1657796913; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pHbjtE2rRok+PDLTLfeXHRG66lZG1VHrYTg2Mc7KRmA=; b=l0o0mGVEo3aG1nm/azETnbcv912beRkDj6Mi28Wba/b0XkSKl6c3JKNyWYzfHBNDLDo7OD ejtrRdDUswOYy+cwkKN1F9bi1vMHnhk8OJ+AwC1OXjv9+P8P0Q/ygTv2TZwYDMXH5kdxS2 y0Mn6dvB9vvh/Uf1TBfNZFakLezpNSX9PRbzqIs89M7wY4eBLlD8HjM1EDkTHYkF2CuW5Y d9/qQmOKHZFL1ChgSiPIDD74CzkyfvdHGqURn0pwxAPN5zDXWIQQZwBQgmWVkUQJTEkqx/ arv1yr3eext0H0MEnh8tebFhbo7N2Q9aW4IF5iBMDwFKxfnsYzKZkrEiwru/GA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1657796913; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pHbjtE2rRok+PDLTLfeXHRG66lZG1VHrYTg2Mc7KRmA=; b=K//a577Lepf+k3NWFVCTMIsf0SGNcjTH5FeqbLqF0R3VvETI8ZU5WhaMD+1diBwrUTYWVs GokR69ylrdBetNAw== From: "tip-bot2 for Jiapeng Chong" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/bugs: Mark retbleed_strings static Cc: Abaci Robot , Jiapeng Chong , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220714072939.71162-1-jiapeng.chong@linux.alibaba.com> References: <20220714072939.71162-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Message-ID: <165779691246.15455.16253032169822799893.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 33a8573bdfeec5b746aedeea880733a4c7993158 Gitweb: https://git.kernel.org/tip/33a8573bdfeec5b746aedeea880733a4c7993158 Author: Jiapeng Chong AuthorDate: Thu, 14 Jul 2022 15:29:39 +08:00 Committer: Borislav Petkov CommitterDate: Thu, 14 Jul 2022 09:41:30 +02:00 x86/bugs: Mark retbleed_strings static This symbol is not used outside of bugs.c, so mark it static. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220714072939.71162-1-jiapeng.chong@linux.alibaba.com --- arch/x86/kernel/cpu/bugs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 0dd0471..3a0787a 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -793,7 +793,7 @@ enum retbleed_mitigation_cmd { RETBLEED_CMD_IBPB, }; -const char * const retbleed_strings[] = { +static const char * const retbleed_strings[] = { [RETBLEED_MITIGATION_NONE] = "Vulnerable", [RETBLEED_MITIGATION_UNRET] = "Mitigation: untrained return thunk", [RETBLEED_MITIGATION_IBPB] = "Mitigation: IBPB",