[RFC PATCH intel-tdx] x86/tdx: x86_disable_prot can be static

From: kernel test robot
Date: Thu Sep 02 2021 - 00:18:20 EST


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 <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
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)
{