* [iommu:x86/vt-d 7/10] drivers/iommu/intel-iommu.c:920:22: sparse: incorrect type in assignment (different address spaces)
@ 2015-05-29 19:12 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-05-29 19:12 UTC (permalink / raw)
To: Li, Zhen-Hua
Cc: Bill Sumner, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
Joerg Roedel, kbuild-all-JC7UmRfGjtg
tree: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git x86/vt-d
head: 6c37b5ba0e4df96647677fac5d87d9fd561c3ef8
commit: 60d69731b2742d12178b54844b852de0549bbd87 [7/10] iommu/vt-d: enable kdump support in iommu module
reproduce:
# apt-get install sparse
git checkout 60d69731b2742d12178b54844b852de0549bbd87
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
drivers/iommu/intel-iommu.c:5023:9: sparse: incorrect type in argument 2 (different address spaces)
drivers/iommu/intel-iommu.c:5023:9: expected void const *from
drivers/iommu/intel-iommu.c:5023:9: got void [noderef] <asn:2>*root_entry_old_virt
drivers/iommu/intel-iommu.c:5057:9: sparse: incorrect type in argument 1 (different address spaces)
drivers/iommu/intel-iommu.c:5057:9: expected void *to
drivers/iommu/intel-iommu.c:5057:9: got void [noderef] <asn:2>*
drivers/iommu/intel-iommu.c:5059:39: sparse: incorrect type in argument 2 (different address spaces)
drivers/iommu/intel-iommu.c:5059:39: expected void *addr
drivers/iommu/intel-iommu.c:5059:39: got void [noderef] <asn:2>*
>> drivers/iommu/intel-iommu.c:920:22: sparse: incorrect type in assignment (different address spaces)
drivers/iommu/intel-iommu.c:920:22: expected struct root_entry *root
drivers/iommu/intel-iommu.c:920:22: got void [noderef] <asn:2>*root_entry_old_virt
>> drivers/iommu/intel-iommu.c:933:25: sparse: incorrect type in argument 1 (different address spaces)
drivers/iommu/intel-iommu.c:933:25: expected void volatile [noderef] <asn:2>*addr
drivers/iommu/intel-iommu.c:933:25: got struct root_entry *root
drivers/iommu/intel-iommu.c:1192:13: sparse: symbol 'domain_unmap' was not declared. Should it be static?
drivers/iommu/intel-iommu.c:1218:6: sparse: symbol 'dma_free_pagelist' was not declared. Should it be static?
drivers/iommu/intel-iommu.c:4950:17: sparse: incorrect type in argument 2 (different address spaces)
drivers/iommu/intel-iommu.c:4950:17: expected void const *from
drivers/iommu/intel-iommu.c:4950:17: got void [noderef] <asn:2>*[assigned] virt_mem
drivers/iommu/intel-iommu.c:4987:17: sparse: incorrect type in argument 1 (different address spaces)
drivers/iommu/intel-iommu.c:4987:17: expected void *to
drivers/iommu/intel-iommu.c:4987:17: got void [noderef] <asn:2>*[assigned] virt_mem
drivers/iommu/intel-iommu.c:5111:12: sparse: context imbalance in 'intel_iommu_load_translation_tables' - different lock contexts for basic block
vim +920 drivers/iommu/intel-iommu.c
914 free_pgtable_page(context);
915
916 }
917
918 if (iommu->pre_enabled_trans) {
919 iommu->root_entry_old_phys = 0;
> 920 root = iommu->root_entry_old_virt;
921 iommu->root_entry_old_virt = NULL;
922 }
923
924 free_pgtable_page(iommu->root_entry);
925 iommu->root_entry = NULL;
926
927 spin_unlock_irqrestore(&iommu->lock, flags);
928
929 /* We put this out of spin_unlock is because iounmap() may
930 * cause error if surrounded by spin_lock and unlock;
931 */
932 if (iommu->pre_enabled_trans)
> 933 iounmap(root);
934 }
935
936 static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain,
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-29 19:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 19:12 [iommu:x86/vt-d 7/10] drivers/iommu/intel-iommu.c:920:22: sparse: incorrect type in assignment (different address spaces) kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox