* [android-common:android15-6.6 2/2] arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2026-05-14 2:59 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-14 2:59 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android15-6.6
head: 5346453405bf12d7ed6003f45dd47b71744fe1be
commit: 28b92141c6f37f35b82f00410d87d5727bfce827 [2/2] ANDROID: KVM: arm64: Add stage-2 pagetable snapshot walker
config: arm64-randconfig-r122-20260514 (https://download.01.org/0day-ci/archive/20260514/202605141031.cGCoZdsc-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260514/202605141031.cGCoZdsc-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/202605141031.cGCoZdsc-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
arch/arm64/kvm/hyp/pgtable.c:269:5: sparse: sparse: context imbalance in 'kvm_pgtable_walk' - different lock contexts for basic block
vim +1784 arch/arm64/kvm/hyp/pgtable.c
1764
1765 int kvm_pgtable_stage2_snapshot(struct kvm_pgtable_snapshot *dest_pgt,
1766 struct kvm_pgtable *src_pgt,
1767 size_t pgd_len)
1768 {
1769 struct kvm_pgtable *to_pgt = &dest_pgt->pgtable;
1770 struct kvm_pgtable_walker walker = {
1771 .cb = snapshot_walker,
1772 .flags = KVM_PGTABLE_WALK_LEAF |
1773 KVM_PGTABLE_WALK_TABLE_PRE,
1774 .arg = &dest_pgt->mc,
1775 };
1776
1777 if (!to_pgt->pgd || dest_pgt->pgd_pages < (pgd_len >> PAGE_SHIFT))
1778 return -EINVAL;
1779
1780 /*
1781 * Walk the destination pagetable with the original PGD entries from
1782 * the source, then descend into the newly installed leafs.
1783 */
> 1784 memcpy(to_pgt->pgd, src_pgt->pgd, pgd_len);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [android-common:android15-6.6 2/2] arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2026-05-14 23:35 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-14 23:35 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android15-6.6
head: 5346453405bf12d7ed6003f45dd47b71744fe1be
commit: 28b92141c6f37f35b82f00410d87d5727bfce827 [2/2] ANDROID: KVM: arm64: Add stage-2 pagetable snapshot walker
config: arm64-randconfig-r122-20260514 (https://download.01.org/0day-ci/archive/20260515/202605150726.o86hgj6S-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605150726.o86hgj6S-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/202605150726.o86hgj6S-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
>> arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const * @@ got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd @@
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: expected void const *
arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: got unsigned long long [noderef] [usertype] __rcu *[usertype] pgd
arch/arm64/kvm/hyp/pgtable.c:269:5: sparse: sparse: context imbalance in 'kvm_pgtable_walk' - different lock contexts for basic block
vim +1784 arch/arm64/kvm/hyp/pgtable.c
1764
1765 int kvm_pgtable_stage2_snapshot(struct kvm_pgtable_snapshot *dest_pgt,
1766 struct kvm_pgtable *src_pgt,
1767 size_t pgd_len)
1768 {
1769 struct kvm_pgtable *to_pgt = &dest_pgt->pgtable;
1770 struct kvm_pgtable_walker walker = {
1771 .cb = snapshot_walker,
1772 .flags = KVM_PGTABLE_WALK_LEAF |
1773 KVM_PGTABLE_WALK_TABLE_PRE,
1774 .arg = &dest_pgt->mc,
1775 };
1776
1777 if (!to_pgt->pgd || dest_pgt->pgd_pages < (pgd_len >> PAGE_SHIFT))
1778 return -EINVAL;
1779
1780 /*
1781 * Walk the destination pagetable with the original PGD entries from
1782 * the source, then descend into the newly installed leafs.
1783 */
> 1784 memcpy(to_pgt->pgd, src_pgt->pgd, pgd_len);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-14 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 2:59 [android-common:android15-6.6 2/2] arch/arm64/kvm/hyp/pgtable.c:1784:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-05-14 23:35 kernel test robot
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.