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=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 DC970C432BE for ; Thu, 2 Sep 2021 04:18:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A9A2F60F90 for ; Thu, 2 Sep 2021 04:18:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbhIBETQ (ORCPT ); Thu, 2 Sep 2021 00:19:16 -0400 Received: from mga12.intel.com ([192.55.52.136]:29881 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbhIBETO (ORCPT ); Thu, 2 Sep 2021 00:19:14 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="198514701" X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="198514701" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2021 21:18:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,371,1620716400"; d="scan'208";a="542336836" Received: from lkp-server01.sh.intel.com (HELO 4fbc2b3ce5aa) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 01 Sep 2021 21:18:15 -0700 Received: from kbuild by 4fbc2b3ce5aa with local (Exim 4.92) (envelope-from ) id 1mLeB4-0008bB-Ei; Thu, 02 Sep 2021 04:18:14 +0000 Date: Thu, 2 Sep 2021 12:17:21 +0800 From: kernel test robot To: Andi Kleen Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Kuppuswamy Sathyanarayanan Subject: [RFC PATCH intel-tdx] x86/tdx: x86_disable_prot can be static Message-ID: <20210902041720.GA47763@e994d071fa58> References: <202109021222.Ayz3RnA1-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202109021222.Ayz3RnA1-lkp@intel.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org arch/x86/kernel/cpu/intel.c:66:14: warning: symbol 'x86_disable_prot' was not declared. Should it be static? Fixes: 88ae938a9403 ("x86/tdx: Add option to override prot values") Reported-by: kernel test robot Signed-off-by: kernel test robot --- intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index d2b3527b2c71a..187bea52363b7 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -63,7 +63,7 @@ static bool cpu_model_supports_sld __ro_after_init; #ifdef CONFIG_ARCH_HAS_PROTECTED_GUEST -unsigned int x86_disable_prot = -1; +static unsigned int x86_disable_prot = -1; static int __init x86_prot_clear_setup(char *arg) {