[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202109021126.kEcuRagj-lkp@intel.com>
Date: Thu, 2 Sep 2021 11:57:33 +0800
From: kernel test robot <lkp@...el.com>
To: Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>
Cc: 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:
dereferencing pointer to incomplete type 'struct device'
tree: https://github.com/intel/tdx.git guest
head: c748712bd17bbd7f8a75553911a5557f3d7d32b2
commit: 9776cd53b86f83859c1f974a9cfff54d08e81f46 [72/127] x86/tdx: Add device filter support for x86 TDX guest platform
config: i386-buildonly-randconfig-r001-20210902 (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/9776cd53b86f83859c1f974a9cfff54d08e81f46
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 9776cd53b86f83859c1f974a9cfff54d08e81f46
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/i915/
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/include/asm/kvm_para.h:7,
from arch/x86/include/asm/hypervisor.h:37,
from drivers/gpu/drm/i915/i915_drv.h:36,
from drivers/gpu/drm/i915/i915_config.c:6:
arch/x86/include/asm/tdx.h: In function 'tdx_guest_authorized':
>> arch/x86/include/asm/tdx.h:175:12: error: dereferencing pointer to incomplete type 'struct device'
175 | return dev->authorized;
| ^~
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" (43576 bytes)
Powered by blists - more mailing lists