Re: [PATCH 07/15] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v4
From: kbuild test robot
Date: Fri Jun 30 2017 - 20:26:57 EST
Hi Jérôme,
[auto build test WARNING on mmotm/master]
[also build test WARNING on next-20170630]
[cannot apply to linus/master v4.12-rc7]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/J-r-me-Glisse/HMM-Heterogeneous-Memory-Management-v24/20170629-232809
base: git://git.cmpxchg.org/linux-mmotm.git master
config: x86_64-randconfig-a0-07010546 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
mm/shmem.c: In function 'shmem_free_swap':
>> mm/shmem.c:647: warning: value computed is not used
--
mm/madvise.c: In function 'madvise_free_pte_range':
>> mm/madvise.c:341: warning: value computed is not used
vim +647 mm/shmem.c
6922c0c7 Hugh Dickins 2011-08-03 631 BUG_ON(error);
6922c0c7 Hugh Dickins 2011-08-03 632 }
6922c0c7 Hugh Dickins 2011-08-03 633
6922c0c7 Hugh Dickins 2011-08-03 634 /*
7a5d0fbb Hugh Dickins 2011-08-03 635 * Remove swap entry from radix tree, free the swap and its page cache.
7a5d0fbb Hugh Dickins 2011-08-03 636 */
7a5d0fbb Hugh Dickins 2011-08-03 637 static int shmem_free_swap(struct address_space *mapping,
7a5d0fbb Hugh Dickins 2011-08-03 638 pgoff_t index, void *radswap)
7a5d0fbb Hugh Dickins 2011-08-03 639 {
6dbaf22c Johannes Weiner 2014-04-03 640 void *old;
7a5d0fbb Hugh Dickins 2011-08-03 641
7a5d0fbb Hugh Dickins 2011-08-03 642 spin_lock_irq(&mapping->tree_lock);
6dbaf22c Johannes Weiner 2014-04-03 643 old = radix_tree_delete_item(&mapping->page_tree, index, radswap);
7a5d0fbb Hugh Dickins 2011-08-03 644 spin_unlock_irq(&mapping->tree_lock);
6dbaf22c Johannes Weiner 2014-04-03 645 if (old != radswap)
6dbaf22c Johannes Weiner 2014-04-03 646 return -ENOENT;
7a5d0fbb Hugh Dickins 2011-08-03 @647 free_swap_and_cache(radix_to_swp_entry(radswap));
6dbaf22c Johannes Weiner 2014-04-03 648 return 0;
7a5d0fbb Hugh Dickins 2011-08-03 649 }
7a5d0fbb Hugh Dickins 2011-08-03 650
7a5d0fbb Hugh Dickins 2011-08-03 651 /*
6a15a370 Vlastimil Babka 2016-01-14 652 * Determine (in bytes) how many of the shmem object's pages mapped by the
48131e03 Vlastimil Babka 2016-01-14 653 * given offsets are swapped out.
6a15a370 Vlastimil Babka 2016-01-14 654 *
6a15a370 Vlastimil Babka 2016-01-14 655 * This is safe to call without i_mutex or mapping->tree_lock thanks to RCU,
:::::: The code at line 647 was first introduced by commit
:::::: 7a5d0fbb29936fad7f17b1cb001b0c33a5f13328 tmpfs: convert shmem_truncate_range to radix-swap
:::::: TO: Hugh Dickins <hughd@xxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip