[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109071511.FM1dFGNq-lkp@intel.com>
Date: Tue, 7 Sep 2021 15:58:18 +0800
From: kernel test robot <lkp@...el.com>
To: Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: [intel-tdx:guest 72/127] arch/x86/include/asm/tdx.h:175:12: error:
incomplete definition of type 'struct device'
tree: https://github.com/intel/tdx.git guest
head: b664217e7111f0828acb7b3d9b328836027e96ad
commit: eadf2f3ffec9cda68bc17e795c02fab456d12a7f [72/127] x86/tdx: Add device filter support for x86 TDX guest platform
config: i386-randconfig-r022-20210906 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
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/eadf2f3ffec9cda68bc17e795c02fab456d12a7f
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout eadf2f3ffec9cda68bc17e795c02fab456d12a7f
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/cpu/hypervisor.c:27:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:175:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
1 error generated.
vim +175 arch/x86/include/asm/tdx.h
172
173 static inline bool tdx_guest_authorized(struct device *dev, char *dev_str)
174 {
> 175 return dev->authorized;
176 }
177
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (36247 bytes)
Powered by blists - more mailing lists