[android-common:android16-6.12-desktop 1/1] arch/x86/include/asm/kvm_pkvm.h:280:30: error: field has incomplete type 'struct pkvm_iommu_map_param'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
Hi Vineeth,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android16-6.12-desktop
head:   24c37396da197463e1ff2bc69bb789e34dacad53
commit: e3aff207324c14597db951ea892402226359276b [1/1] ANDROID: pkvm: x86: Hypercalls for domain pagetable management
config: i386-randconfig-r072-20260813 (https://download.01.org/0day-ci/archive/20260813/[email protected]/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/setup.c:43:
   arch/x86/include/asm/kvm_pkvm.h:275:31: error: field has incomplete type 'struct pkvm_lm_context_param'
     275 |         struct pkvm_lm_context_param lm_context_param;
         |                                      ^
   arch/x86/include/asm/kvm_pkvm.h:275:9: note: forward declaration of 'struct pkvm_lm_context_param'
     275 |         struct pkvm_lm_context_param lm_context_param;
         |                ^
   arch/x86/include/asm/kvm_pkvm.h:276:38: error: field has incomplete type 'struct pkvm_clear_translation_param'
     276 |         struct pkvm_clear_translation_param clear_translation_param;
         |                                             ^
   arch/x86/include/asm/kvm_pkvm.h:276:9: note: forward declaration of 'struct pkvm_clear_translation_param'
     276 |         struct pkvm_clear_translation_param clear_translation_param;
         |                ^
   arch/x86/include/asm/kvm_pkvm.h:277:31: error: field has incomplete type 'struct pkvm_sm_context_param'
     277 |         struct pkvm_sm_context_param sm_context_param;
         |                                      ^
   arch/x86/include/asm/kvm_pkvm.h:277:9: note: forward declaration of 'struct pkvm_sm_context_param'
     277 |         struct pkvm_sm_context_param sm_context_param;
         |                ^
   arch/x86/include/asm/kvm_pkvm.h:278:32: error: field has incomplete type 'struct pkvm_pasid_table_param'
     278 |         struct pkvm_pasid_table_param pasid_table_param;
         |                                       ^
   arch/x86/include/asm/kvm_pkvm.h:278:9: note: forward declaration of 'struct pkvm_pasid_table_param'
     278 |         struct pkvm_pasid_table_param pasid_table_param;
         |                ^
   arch/x86/include/asm/kvm_pkvm.h:279:27: error: field has incomplete type 'struct pkvm_domain_param'
     279 |         struct pkvm_domain_param domain_param;
         |                                  ^
   arch/x86/include/asm/kvm_pkvm.h:279:9: note: forward declaration of 'struct pkvm_domain_param'
     279 |         struct pkvm_domain_param domain_param;
         |                ^
>> arch/x86/include/asm/kvm_pkvm.h:280:30: error: field has incomplete type 'struct pkvm_iommu_map_param'
     280 |         struct pkvm_iommu_map_param iommu_map_param;
         |                                     ^
   arch/x86/include/asm/kvm_pkvm.h:280:9: note: forward declaration of 'struct pkvm_iommu_map_param'
     280 |         struct pkvm_iommu_map_param iommu_map_param;
         |                ^
   6 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for DRM_MIPI_DSI
   Depends on [n]: HAS_IOMEM [=y] && DRM [=n]
   Selected by [y]:
   - GKI_HIDDEN_DRM_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for DRM_PRIVACY_SCREEN
   Depends on [n]: HAS_IOMEM [=y] && DRM [=n]
   Selected by [y]:
   - GKI_HIDDEN_DRM_CONFIGS [=y] && X86 [=y]
   WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
   Depends on [n]: NETDEVICES [=y] && CAN_DEV [=n] && CAN_NETLINK [=n]
   Selected by [y]:
   - GKI_HIDDEN_MCP251XFD_CONFIGS [=y]


vim +280 arch/x86/include/asm/kvm_pkvm.h

   267	
   268	union pkvm_pv_param {
   269		struct kvm_segment seg;
   270		struct msr_data msr;
   271		struct desc_ptr desc;
   272		struct eoi_exitmap eoi_exit_bitmap;
   273	
   274		/* IOMMU hypercall params */
   275		struct pkvm_lm_context_param lm_context_param;
   276		struct pkvm_clear_translation_param clear_translation_param;
   277		struct pkvm_sm_context_param sm_context_param;
   278		struct pkvm_pasid_table_param pasid_table_param;
   279		struct pkvm_domain_param domain_param;
 > 280		struct pkvm_iommu_map_param iommu_map_param;
   281	} __aligned(PAGE_SIZE);
   282	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.