linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:host-upstream 7/18] arch/x86/kernel/cpu/tdx/tdx.c:148:30: warning: variable 'err' is uninitialized when used within its own initialization
@ 2022-01-26 18:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-26 18:52 UTC (permalink / raw)
  To: Kai Huang; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://github.com/intel/tdx.git host-upstream
head:   6806a9874cdac7e51e15c056986098bf94a062aa
commit: b9feae73d1b45e81a7d573531ee2e594ccea51b5 [7/18] x86/cpu: Do logical cpu level TDX module initialization
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20220127/202201270252.bK9LlDe7-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2a1b7aa016c0f4b5598806205bdfbab1ea2d92c4)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/intel/tdx/commit/b9feae73d1b45e81a7d573531ee2e594ccea51b5
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx host-upstream
        git checkout b9feae73d1b45e81a7d573531ee2e594ccea51b5
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/cpu/tdx/

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

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/cpu/tdx/tdx.c:148:30: warning: variable 'err' is uninitialized when used within its own initialization [-Wuninitialized]
           atomic_t *err = (atomic_t *)err;
                     ~~~               ^~~
   1 warning generated.


vim +/err +148 arch/x86/kernel/cpu/tdx/tdx.c

   144	
   145	/* SMP call function to run TDH.SYS.LP.INIT */
   146	static void smp_call_tdx_cpu_init(void *data)
   147	{
 > 148		atomic_t *err = (atomic_t *)err;
   149	
   150		if (tdh_sys_lp_init())
   151			atomic_set(err, -1);
   152	}
   153	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-26 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 18:52 [intel-tdx:host-upstream 7/18] arch/x86/kernel/cpu/tdx/tdx.c:148:30: warning: variable 'err' is uninitialized when used within its own initialization 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).