linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest 61/127] arch/x86/kernel/cpu/intel.c:66:14: sparse: sparse: symbol 'x86_disable_prot' was not declared. Should it be static?
@ 2021-09-02  4:17 kernel test robot
  2021-09-02  4:17 ` [RFC PATCH intel-tdx] x86/tdx: x86_disable_prot can be static kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-09-02  4:17 UTC (permalink / raw)
  To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan

[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]

tree:   https://github.com/intel/tdx.git guest
head:   c748712bd17bbd7f8a75553911a5557f3d7d32b2
commit: 88ae938a940372416844f862bad42a2d532f1a12 [61/127] x86/tdx: Add option to override prot values
config: x86_64-randconfig-s022-20210901 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # https://github.com/intel/tdx/commit/88ae938a940372416844f862bad42a2d532f1a12
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout 88ae938a940372416844f862bad42a2d532f1a12
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/cpu/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/cpu/intel.c:66:14: sparse: sparse: symbol 'x86_disable_prot' was not declared. Should it be static?

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35461 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [RFC PATCH intel-tdx] x86/tdx: x86_disable_prot can be static
  2021-09-02  4:17 [intel-tdx:guest 61/127] arch/x86/kernel/cpu/intel.c:66:14: sparse: sparse: symbol 'x86_disable_prot' was not declared. Should it be static? kernel test robot
@ 2021-09-02  4:17 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-02  4:17 UTC (permalink / raw)
  To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-02  4:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02  4:17 [intel-tdx:guest 61/127] arch/x86/kernel/cpu/intel.c:66:14: sparse: sparse: symbol 'x86_disable_prot' was not declared. Should it be static? kernel test robot
2021-09-02  4:17 ` [RFC PATCH intel-tdx] x86/tdx: x86_disable_prot can be static kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).