linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest 72/127] arch/x86/include/asm/tdx.h:175:12: error: incomplete definition of type 'struct device'
@ 2021-09-15 14:02 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-15 14:02 UTC (permalink / raw)
  To: Kuppuswamy Sathyanarayanan; +Cc: llvm, kbuild-all, linux-kernel, Andi Kleen

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

tree:   https://github.com/intel/tdx.git guest
head:   3e3ee9731488f58ed27a7ec4ce674f602de44e73
commit: 1ab75a6ac332c35e871f73765bd531170798b615 [72/127] x86/tdx: Add device filter support for x86 TDX guest platform
config: x86_64-randconfig-c007-20210915 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 261cbe98c38f8c1ee1a482fe76511110e790f58a)
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/1ab75a6ac332c35e871f73765bd531170798b615
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout 1ab75a6ac332c35e871f73765bd531170798b615
        # save the attached .config 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

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

All errors (new ones prefixed by >>):

   In file included from arch/x86/kvm/../../../virt/kvm/kvm_main.c:18:
   In file included from include/linux/kvm_host.h:35:
   In file included from include/linux/kvm_para.h:5:
   In file included from include/uapi/linux/kvm_para.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;
          ^
   In file included from arch/x86/kvm/../../../virt/kvm/kvm_main.c:41:
   include/linux/mman.h:158:9: warning: division by zero is undefined [-Wdivision-by-zero]
                  _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:135:21: note: expanded from macro '_calc_vm_trans'
      : ((x) & (bit1)) / ((bit1) / (bit2))))
                       ^ ~~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from arch/x86/kvm/../../../virt/kvm/coalesced_mmio.c:14:
   In file included from include/linux/kvm_host.h:35:
   In file included from include/linux/kvm_para.h:5:
   In file included from include/uapi/linux/kvm_para.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.
--
   In file included from drivers/gpu/drm/i915/gt/intel_sseu_debugfs.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   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;
          ^
   In file included from drivers/gpu/drm/i915/gt/intel_sseu_debugfs.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:84:
   In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
   In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
   In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9:
   In file included from drivers/gpu/drm/i915/gt/uc/intel_guc.h:17:
   In file included from drivers/gpu/drm/i915/i915_vma.h:34:
   drivers/gpu/drm/i915/gem/i915_gem_object.h:39:6: warning: shift count >= width of type [-Wshift-count-overflow]
           if (overflows_type(size, obj->base.size))
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_utils.h:125:32: note: expanded from macro 'overflows_type'
           (sizeof(x) > sizeof(T) && (x) >> BITS_PER_TYPE(T))
                                         ^  ~~~~~~~~~~~~~~~~
   1 warning and 1 error generated.
--
   In file included from drivers/gpu/drm/i915/i915_query.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:36:
   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;
          ^
   In file included from drivers/gpu/drm/i915/i915_query.c:9:
   In file included from drivers/gpu/drm/i915/i915_drv.h:84:
   In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
   In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
   In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9:
   In file included from drivers/gpu/drm/i915/gt/uc/intel_guc.h:17:
   In file included from drivers/gpu/drm/i915/i915_vma.h:34:
   drivers/gpu/drm/i915/gem/i915_gem_object.h:39:6: warning: shift count >= width of type [-Wshift-count-overflow]
           if (overflows_type(size, obj->base.size))
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_utils.h:125:32: note: expanded from macro 'overflows_type'
           (sizeof(x) > sizeof(T) && (x) >> BITS_PER_TYPE(T))
                                         ^  ~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_query.c:513:7: warning: shift count >= width of type [-Wshift-count-overflow]
                   if (overflows_type(item.query_id - 1, unsigned long))
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_utils.h:125:32: note: expanded from macro 'overflows_type'
           (sizeof(x) > sizeof(T) && (x) >> BITS_PER_TYPE(T))
                                         ^  ~~~~~~~~~~~~~~~~
   2 warnings and 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

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

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

* [intel-tdx:guest 72/127] arch/x86/include/asm/tdx.h:175:12: error: incomplete definition of type 'struct device'
@ 2021-09-07  7:58 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-09-07  7:58 UTC (permalink / raw)
  To: Kuppuswamy Sathyanarayanan; +Cc: llvm, kbuild-all, linux-kernel, Andi Kleen

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

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@intel.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

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

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 14:02 [intel-tdx:guest 72/127] arch/x86/include/asm/tdx.h:175:12: error: incomplete definition of type 'struct device' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-09-07  7:58 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).