Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp268424imw; Thu, 14 Jul 2022 01:10:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t5HucK+blkpW87UIdLi3MViY/k+ZmOI292U6ny9yJmsGcTHsMQHFOJoKdtUGyvIYUlxmLS X-Received: by 2002:a17:906:4fc5:b0:72b:9943:6f10 with SMTP id i5-20020a1709064fc500b0072b99436f10mr7801265ejw.722.1657786222275; Thu, 14 Jul 2022 01:10:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657786222; cv=none; d=google.com; s=arc-20160816; b=qi7Jwsb8V5J5VguXMWcTZxelgdG+5cSCebTm5/TMj+aedBPvLR4zY5GeqDKb7GmPoH NqboTXpc4navWl/CIDk/IERMRuSSAyxCXfeeMLw4C1MTRyF7ifGDYq+yLtizF5v5VquP QigLrOSB69AaXUyQisucuCiPehIPzS1DU9tMLpwV16GTASTA1Q81h7G4/pD+9aMLW7Qb nPOj4pFMogKXv4aAui/3UoqzM5Dnn2eGr16xeuDhV6MW+EPHIkuwhL0xWOtQFxBOrzu9 6dgD6boueXZA0bSNEtiC253DQLmZX340N7EmUvkGgk3ukSuD7TvoT6CptUXgswxTdk6U 7nEA== 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 :message-id:date:subject:cc:to:from; bh=2/j/Yy4ivgqUn61RqZCLRyPod8DOS67yTBm4wZV15ug=; b=T4jmmNw6sdKtkiSaMK2abFZV7yRlSiLaQeNqwnUTmfFbp9qCFlYdiuFNagBhcHmIha Xe4EOdnIoxq7KPKys7gLEhWhN++aw+yCvuRc2cexXr5AiuVUN6TrpBqpLwPshTOAqRjx RvFdgv97M5D2uiiD6sk0tzsyn/ViIhokR6xeuu3cUVGlD5awX/0MC59t0Pj+MbMJZ317 nNhJISwgSiSFKymm5gRF9LLGJ8VoRz5cNsoQwUVNdmPO9A47Y/grdyGWrjIGKOOJMXxH jqPmQQN50y2j3CP2Ua4kZuVH4EqW4IEjodcXUDJHU2PXuQCGA9HwGdz545uw4qJwSH8a ZoGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs27-20020a1709073e9b00b007108d0c71fasi1352545ejc.465.2022.07.14.01.09.57; Thu, 14 Jul 2022 01:10:22 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiGNH3x (ORCPT + 99 others); Thu, 14 Jul 2022 03:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231281AbiGNH3v (ORCPT ); Thu, 14 Jul 2022 03:29:51 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C997B31DEA; Thu, 14 Jul 2022 00:29:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VJI8bZq_1657783782; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VJI8bZq_1657783782) by smtp.aliyun-inc.com; Thu, 14 Jul 2022 15:29:47 +0800 From: Jiapeng Chong To: tglx@linutronix.de Cc: mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] x86/bugs: make retbleed_strings static Date: Thu, 14 Jul 2022 15:29:39 +0800 Message-Id: <20220714072939.71162-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 This symbol is not used outside of bugs.c, so marks it static. arch/x86/kernel/cpu/bugs.c:796:12: warning: symbol 'retbleed_strings' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- 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 0dd04713434b..3a0787a36910 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", -- 2.20.1.7.g153144c