Hi Shiyang, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.15-rc1 next-20210916] [cannot apply to xfs-linux/for-next hch-configfs/for-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Shiyang-Ruan/fsdax-xfs-Add-reflink-dedupe-support-for-fsdax/20210915-184743 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3ca706c189db861b2ca2019a0901b94050ca49d8 config: hexagon-randconfig-r045-20210916 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c8b3d7d6d6de37af68b2f379d0e37304f78e115f) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/34b16b56bacb2d3e1e98f9ed47d20b545358bdcd git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Shiyang-Ruan/fsdax-xfs-Add-reflink-dedupe-support-for-fsdax/20210915-184743 git checkout 34b16b56bacb2d3e1e98f9ed47d20b545358bdcd # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> fs/dax.c:1483:38: error: incompatible pointer types passing 'const struct iomap_iter *' to parameter of type 'const struct iomap *' [-Werror,-Wincompatible-pointer-types] return dax_pmd_load_hole(xas, vmf, iter, entry); ^~~~ fs/dax.c:1206:23: note: passing argument to parameter 'iomap' here const struct iomap *iomap, void **entry) ^ 1 error generated. vim +1483 fs/dax.c 1451 1452 /** 1453 * dax_fault_iter - Common actor to handle pfn insertion in PTE/PMD fault. 1454 * @vmf: vm fault instance 1455 * @iter: iomap iter 1456 * @pfnp: pfn to be returned 1457 * @xas: the dax mapping tree of a file 1458 * @entry: an unlocked dax entry to be inserted 1459 * @pmd: distinguish whether it is a pmd fault 1460 */ 1461 static vm_fault_t dax_fault_iter(struct vm_fault *vmf, 1462 const struct iomap_iter *iter, pfn_t *pfnp, 1463 struct xa_state *xas, void **entry, bool pmd) 1464 { 1465 const struct iomap *iomap = &iter->iomap; 1466 const struct iomap *srcmap = &iter->srcmap; 1467 size_t size = pmd ? PMD_SIZE : PAGE_SIZE; 1468 loff_t pos = (loff_t)xas->xa_index << PAGE_SHIFT; 1469 bool write = iter->flags & IOMAP_WRITE; 1470 unsigned long entry_flags = pmd ? DAX_PMD : 0; 1471 int err = 0; 1472 pfn_t pfn; 1473 void *kaddr; 1474 1475 if (!pmd && vmf->cow_page) 1476 return dax_fault_cow_page(vmf, iter); 1477 1478 /* if we are reading UNWRITTEN and HOLE, return a hole. */ 1479 if (!write && 1480 (iomap->type == IOMAP_UNWRITTEN || iomap->type == IOMAP_HOLE)) { 1481 if (!pmd) 1482 return dax_load_hole(xas, vmf, iter, entry); > 1483 return dax_pmd_load_hole(xas, vmf, iter, entry); 1484 } 1485 1486 if (iomap->type != IOMAP_MAPPED && !(iomap->flags & IOMAP_F_SHARED)) { 1487 WARN_ON_ONCE(1); 1488 return pmd ? VM_FAULT_FALLBACK : VM_FAULT_SIGBUS; 1489 } 1490 1491 err = dax_iomap_direct_access(iomap, pos, size, &kaddr, &pfn); 1492 if (err) 1493 return pmd ? VM_FAULT_FALLBACK : dax_fault_return(err); 1494 1495 *entry = dax_insert_entry(xas, vmf, iter, *entry, pfn, entry_flags); 1496 1497 if (write && 1498 srcmap->addr != IOMAP_HOLE && srcmap->addr != iomap->addr) { 1499 err = dax_iomap_cow_copy(pos, size, size, srcmap, kaddr); 1500 if (err) 1501 return dax_fault_return(err); 1502 } 1503 1504 if (dax_fault_is_synchronous(iter, vmf->vma)) 1505 return dax_fault_synchronous_pfnp(pfnp, pfn); 1506 1507 /* insert PMD pfn */ 1508 if (pmd) 1509 return vmf_insert_pfn_pmd(vmf, pfn, write); 1510 1511 /* insert PTE pfn */ 1512 if (write) 1513 return vmf_insert_mixed_mkwrite(vmf->vma, vmf->address, pfn); 1514 return vmf_insert_mixed(vmf->vma, vmf->address, pfn); 1515 } 1516 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip