tree: https://github.com/intel/tdx.git guest head: f334091e36418261da05ae75766873b161868d90 commit: 7c942333d3f0cea8f9d3ab9374b115fd66b5a230 [72/127] x86/tdx: Add device filter support for x86 TDX guest platform config: i386-randconfig-a006-20210831 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/intel/tdx/commit/7c942333d3f0cea8f9d3ab9374b115fd66b5a230 git remote add intel-tdx https://github.com/intel/tdx.git git fetch --no-tags intel-tdx guest git checkout 7c942333d3f0cea8f9d3ab9374b115fd66b5a230 # save the attached .config to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/x86/include/asm/kvm_para.h:7, from arch/x86/include/asm/hypervisor.h:37, from arch/x86/kernel/cpu/hypervisor.c:27: arch/x86/include/asm/tdx.h: In function 'tdx_guest_authorized': >> arch/x86/include/asm/tdx.h:177:12: error: dereferencing pointer to incomplete type 'struct device' 177 | return dev->authorized; | ^~ vim +177 arch/x86/include/asm/tdx.h 174 175 static inline bool tdx_guest_authorized(struct device *dev, char *dev_str) 176 { > 177 return dev->authorized; 178 } 179 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org