From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android15-6.6 1/1] arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:339:34: error: 'struct iommu_iotlb_gather' has no member named 'start'
Date: Sat, 22 Feb 2025 06:02:34 +0800 [thread overview]
Message-ID: <202502220606.GZTz4dtt-lkp@intel.com> (raw)
Hi Mostafa,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android15-6.6
head: e664677e9418d630e952f7610e1bef84d50949dd
commit: c220ef36a11e4fe05cc1e583f8e24d2a61541a87 [1/1] ANDROID: KVM: arm64: iommu: support iommu_iotlb_gather
config: arm64-randconfig-001-20250222 (https://download.01.org/0day-ci/archive/20250222/202502220606.GZTz4dtt-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250222/202502220606.GZTz4dtt-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/202502220606.GZTz4dtt-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:85:5: warning: no previous prototype for 'kvm_iommu_refill' [-Wmissing-prototypes]
85 | int kvm_iommu_refill(struct kvm_hyp_memcache *host_mc)
| ^~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:90:6: warning: no previous prototype for 'kvm_iommu_reclaim' [-Wmissing-prototypes]
90 | void kvm_iommu_reclaim(struct kvm_hyp_memcache *host_mc, int target)
| ^~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:95:5: warning: no previous prototype for 'kvm_iommu_reclaimable' [-Wmissing-prototypes]
95 | int kvm_iommu_reclaimable(void)
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c: In function 'kvm_iommu_iotlb_gather_is_disjoint':
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:338:22: error: 'struct iommu_iotlb_gather' has no member named 'end'
338 | return gather->end != 0 &&
| ^~
>> arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:339:34: error: 'struct iommu_iotlb_gather' has no member named 'start'
339 | (end + 1 < gather->start || start > gather->end + 1);
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:339:59: error: 'struct iommu_iotlb_gather' has no member named 'end'
339 | (end + 1 < gather->start || start > gather->end + 1);
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c: In function 'kvm_iommu_iotlb_gather_add_range':
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:347:19: error: 'struct iommu_iotlb_gather' has no member named 'start'
347 | if (gather->start > iova)
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:348:23: error: 'struct iommu_iotlb_gather' has no member named 'start'
348 | gather->start = iova;
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:349:19: error: 'struct iommu_iotlb_gather' has no member named 'end'
349 | if (gather->end < end)
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:350:23: error: 'struct iommu_iotlb_gather' has no member named 'end'
350 | gather->end = end;
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c: In function 'kvm_iommu_iotlb_gather_add_page':
>> arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:358:20: error: 'struct iommu_iotlb_gather' has no member named 'pgsize'
358 | if ((gather->pgsize && gather->pgsize != size) ||
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:358:38: error: 'struct iommu_iotlb_gather' has no member named 'pgsize'
358 | if ((gather->pgsize && gather->pgsize != size) ||
| ^~
arch/arm64/kvm/hyp/nvhe/iommu/iommu.c:362:15: error: 'struct iommu_iotlb_gather' has no member named 'pgsize'
362 | gather->pgsize = size;
| ^~
vim +339 arch/arm64/kvm/hyp/nvhe/iommu/iommu.c
332
333 static bool kvm_iommu_iotlb_gather_is_disjoint(struct iommu_iotlb_gather *gather,
334 unsigned long iova, size_t size)
335 {
336 unsigned long start = iova, end = start + size - 1;
337
338 return gather->end != 0 &&
> 339 (end + 1 < gather->start || start > gather->end + 1);
340 }
341
342 static inline void kvm_iommu_iotlb_gather_add_range(struct iommu_iotlb_gather *gather,
343 unsigned long iova, size_t size)
344 {
345 unsigned long end = iova + size - 1;
346
347 if (gather->start > iova)
348 gather->start = iova;
349 if (gather->end < end)
350 gather->end = end;
351 }
352
353 void kvm_iommu_iotlb_gather_add_page(void *cookie,
354 struct iommu_iotlb_gather *gather,
355 unsigned long iova,
356 size_t size)
357 {
> 358 if ((gather->pgsize && gather->pgsize != size) ||
359 kvm_iommu_iotlb_gather_is_disjoint(gather, iova, size))
360 kvm_iommu_iotlb_sync(cookie, gather);
361
362 gather->pgsize = size;
363 kvm_iommu_iotlb_gather_add_range(gather, iova, size);
364 }
365
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-21 22:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202502220606.GZTz4dtt-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.