Re: [PATCH 4/5] dax: fix PMD handling for fsync/msync
From: kbuild test robot
Date: Wed Jan 20 2016 - 23:23:51 EST
Hi Ross,
[auto build test WARNING on next-20160120]
[cannot apply to v4.4-rc8 v4.4-rc7 v4.4-rc6 v4.4]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]
url: https://github.com/0day-ci/linux/commits/Ross-Zwisler/DAX-fsync-msync-fixes/20160121-114036
config: tile-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=tile
All warnings (new ones prefixed by >>):
>> fs/dax.c:330:0: warning: "PMD_INDEX" redefined [enabled by default]
arch/tile/include/asm/pgtable_64.h:35:0: note: this is the location of the previous definition
>> fs/dax.c:330:0: warning: "PMD_INDEX" redefined [enabled by default]
arch/tile/include/asm/pgtable_64.h:35:0: note: this is the location of the previous definition
vim +/PMD_INDEX +330 fs/dax.c
314 .sector = to_sector(bh, inode),
315 .size = bh->b_size,
316 };
317 struct block_device *bdev = bh->b_bdev;
318 void *vto;
319
320 if (dax_map_atomic(bdev, &dax) < 0)
321 return PTR_ERR(dax.addr);
322 vto = kmap_atomic(to);
323 copy_user_page(vto, (void __force *)dax.addr, vaddr, to);
324 kunmap_atomic(vto);
325 dax_unmap_atomic(bdev, &dax);
326 return 0;
327 }
328
329 #define NO_SECTOR -1
> 330 #define PMD_INDEX(page_index) (page_index & (PMD_MASK >> PAGE_CACHE_SHIFT))
331
332 static int dax_radix_entry(struct address_space *mapping, pgoff_t index,
333 sector_t sector, bool pmd_entry, bool dirty)
334 {
335 struct radix_tree_root *page_tree = &mapping->page_tree;
336 pgoff_t pmd_index = PMD_INDEX(index);
337 int type, error = 0;
338 void *entry;
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data