* [avpatel:riscv_iommu_irqbypass_v2 13/18] drivers/iommu/riscv/iommu-ir.c:329:43: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
@ 2026-04-29 22:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-29 22:53 UTC (permalink / raw)
To: Andrew Jones; +Cc: llvm, oe-kbuild-all, Anup Patel
tree: https://github.com/avpatel/linux.git riscv_iommu_irqbypass_v2
head: 0ba166d111b762ae8f37075ba1266e345ae5ef59
commit: e3141898f38de6d63cb78f33d1b1e7bfb00d6e29 [13/18] iommu/riscv: Add guest file irqbypass support
config: powerpc64-randconfig-002-20260430 (https://download.01.org/0day-ci/archive/20260430/202604300653.EYPGPUlR-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300653.EYPGPUlR-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604300653.EYPGPUlR-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
include/linux/bitfield.h:91:31: note: expanded from macro '__FIELD_PREP'
91 | __BF_FIELD_CHECK_MASK(mask, val, pfx); \
| ^~~
include/linux/bitfield.h:70:41: note: expanded from macro '__BF_FIELD_CHECK_MASK'
70 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
drivers/iommu/riscv/iommu-ir.c:184:54: error: no member named 'pgd_mode' in 'struct riscv_iommu_domain'
184 | .fsc = FIELD_PREP(RISCV_IOMMU_PC_FSC_MODE, domain->pgd_mode) |
| ~~~~~~ ^
include/linux/bitfield.h:138:23: note: expanded from macro 'FIELD_PREP'
138 | __FIELD_PREP(_mask, _val, "FIELD_PREP: "); \
| ^~~~
include/linux/bitfield.h:91:31: note: expanded from macro '__FIELD_PREP'
91 | __BF_FIELD_CHECK_MASK(mask, val, pfx); \
| ^~~
include/linux/bitfield.h:72:12: note: expanded from macro '__BF_FIELD_CHECK_MASK'
72 | (0 + (_val)) : 0, \
| ^~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
drivers/iommu/riscv/iommu-ir.c:184:54: error: no member named 'pgd_mode' in 'struct riscv_iommu_domain'
184 | .fsc = FIELD_PREP(RISCV_IOMMU_PC_FSC_MODE, domain->pgd_mode) |
| ~~~~~~ ^
include/linux/bitfield.h:138:23: note: expanded from macro 'FIELD_PREP'
138 | __FIELD_PREP(_mask, _val, "FIELD_PREP: "); \
| ^~~~
include/linux/bitfield.h:92:19: note: expanded from macro '__FIELD_PREP'
92 | ((typeof(mask))(val) << __bf_shf(mask)) & (mask); \
| ^~~
drivers/iommu/riscv/iommu-ir.c:185:65: error: no member named 'pgd_root' in 'struct riscv_iommu_domain'
185 | FIELD_PREP(RISCV_IOMMU_PC_FSC_PPN, virt_to_pfn(domain->pgd_root)),
| ~~~~~~ ^
include/linux/bitfield.h:138:23: note: expanded from macro 'FIELD_PREP'
138 | __FIELD_PREP(_mask, _val, "FIELD_PREP: "); \
| ^~~~
include/linux/bitfield.h:91:31: note: expanded from macro '__FIELD_PREP'
91 | __BF_FIELD_CHECK_MASK(mask, val, pfx); \
| ^~~
include/linux/bitfield.h:70:41: note: expanded from macro '__BF_FIELD_CHECK_MASK'
70 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \
| ^~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
drivers/iommu/riscv/iommu-ir.c:185:65: error: no member named 'pgd_root' in 'struct riscv_iommu_domain'
185 | FIELD_PREP(RISCV_IOMMU_PC_FSC_PPN, virt_to_pfn(domain->pgd_root)),
| ~~~~~~ ^
include/linux/bitfield.h:138:23: note: expanded from macro 'FIELD_PREP'
138 | __FIELD_PREP(_mask, _val, "FIELD_PREP: "); \
| ^~~~
include/linux/bitfield.h:91:31: note: expanded from macro '__FIELD_PREP'
91 | __BF_FIELD_CHECK_MASK(mask, val, pfx); \
| ^~~
include/linux/bitfield.h:72:12: note: expanded from macro '__BF_FIELD_CHECK_MASK'
72 | (0 + (_val)) : 0, \
| ^~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:699:22: note: expanded from macro 'compiletime_assert'
699 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~
include/linux/compiler_types.h:687:23: note: expanded from macro '_compiletime_assert'
687 | __compiletime_assert(condition, msg, prefix, suffix)
| ^~~~~~~~~
include/linux/compiler_types.h:679:9: note: expanded from macro '__compiletime_assert'
679 | if (!(condition)) \
| ^~~~~~~~~
drivers/iommu/riscv/iommu-ir.c:185:65: error: no member named 'pgd_root' in 'struct riscv_iommu_domain'
185 | FIELD_PREP(RISCV_IOMMU_PC_FSC_PPN, virt_to_pfn(domain->pgd_root)),
| ~~~~~~ ^
include/linux/bitfield.h:138:23: note: expanded from macro 'FIELD_PREP'
138 | __FIELD_PREP(_mask, _val, "FIELD_PREP: "); \
| ^~~~
include/linux/bitfield.h:92:19: note: expanded from macro '__FIELD_PREP'
92 | ((typeof(mask))(val) << __bf_shf(mask)) & (mask); \
| ^~~
>> drivers/iommu/riscv/iommu-ir.c:327:18: warning: declaration of 'struct riscv_iommu_ir_vcpu_info' will not be visible outside of this function [-Wvisibility]
327 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
>> drivers/iommu/riscv/iommu-ir.c:329:43: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
329 | return domain->msi_addr_mask == vcpu_info->msi_addr_mask &&
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:327:18: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
327 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:330:46: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
330 | domain->msi_addr_pattern == vcpu_info->msi_addr_pattern &&
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:327:18: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
327 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:331:46: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
331 | domain->group_index_bits == vcpu_info->group_index_bits &&
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:327:18: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
327 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:332:47: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
332 | domain->group_index_shift == vcpu_info->group_index_shift;
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:327:18: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
327 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:337:15: warning: declaration of 'struct riscv_iommu_ir_vcpu_info' will not be visible outside of this function [-Wvisibility]
337 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:343:14: error: no member named 'pgd_mode' in 'struct riscv_iommu_domain'
343 | if (domain->pgd_mode)
| ~~~~~~ ^
drivers/iommu/riscv/iommu-ir.c:348:35: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
348 | domain->msi_addr_mask = vcpu_info->msi_addr_mask;
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:337:15: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
337 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:349:38: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
349 | domain->msi_addr_pattern = vcpu_info->msi_addr_pattern;
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:337:15: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
337 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:350:38: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
350 | domain->group_index_bits = vcpu_info->group_index_bits;
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:337:15: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
337 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
drivers/iommu/riscv/iommu-ir.c:351:39: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info'
351 | domain->group_index_shift = vcpu_info->group_index_shift;
| ~~~~~~~~~^
drivers/iommu/riscv/iommu-ir.c:337:15: note: forward declaration of 'struct riscv_iommu_ir_vcpu_info'
337 | struct riscv_iommu_ir_vcpu_info *vcpu_info)
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
vim +329 drivers/iommu/riscv/iommu-ir.c
325
326 static bool riscv_iommu_ir_vcpu_check_config(struct riscv_iommu_domain *domain,
> 327 struct riscv_iommu_ir_vcpu_info *vcpu_info)
328 {
> 329 return domain->msi_addr_mask == vcpu_info->msi_addr_mask &&
330 domain->msi_addr_pattern == vcpu_info->msi_addr_pattern &&
331 domain->group_index_bits == vcpu_info->group_index_bits &&
332 domain->group_index_shift == vcpu_info->group_index_shift;
333 }
334
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-29 22:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 22:53 [avpatel:riscv_iommu_irqbypass_v2 13/18] drivers/iommu/riscv/iommu-ir.c:329:43: error: incomplete definition of type 'struct riscv_iommu_ir_vcpu_info' 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