linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 110/211] mm/shmem.c:646:2: note: in expansion of macro 'free_swap_and_cache'
@ 2017-03-17  1:05 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-03-17  1:05 UTC (permalink / raw)
  To: Jérôme Glisse
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 3162 bytes --]

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   8276ddb3c638602509386f1a05f75326dbf5ce09
commit: 4ec7a28189776a031d4e7f8ee8581c0db9f96847 [110/211] mm/ZONE_DEVICE/unaddressable: add support for un-addressable device memory
config: i386-randconfig-s1-201711 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 4ec7a28189776a031d4e7f8ee8581c0db9f96847
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from mm/shmem.c:34:0:
   mm/shmem.c: In function 'shmem_free_swap':
   include/linux/swap.h:450:55: warning: value computed is not used [-Wunused-value]
    #define free_swap_and_cache(e) (is_migration_entry(e) || is_device_entry(e))
                                                          ^
>> mm/shmem.c:646:2: note: in expansion of macro 'free_swap_and_cache'
     free_swap_and_cache(radix_to_swp_entry(radswap));
     ^~~~~~~~~~~~~~~~~~~

vim +/free_swap_and_cache +646 mm/shmem.c

6922c0c7 Hugh Dickins    2011-08-03  630  	BUG_ON(error);
6922c0c7 Hugh Dickins    2011-08-03  631  }
6922c0c7 Hugh Dickins    2011-08-03  632  
6922c0c7 Hugh Dickins    2011-08-03  633  /*
7a5d0fbb Hugh Dickins    2011-08-03  634   * Remove swap entry from radix tree, free the swap and its page cache.
7a5d0fbb Hugh Dickins    2011-08-03  635   */
7a5d0fbb Hugh Dickins    2011-08-03  636  static int shmem_free_swap(struct address_space *mapping,
7a5d0fbb Hugh Dickins    2011-08-03  637  			   pgoff_t index, void *radswap)
7a5d0fbb Hugh Dickins    2011-08-03  638  {
6dbaf22c Johannes Weiner 2014-04-03  639  	void *old;
7a5d0fbb Hugh Dickins    2011-08-03  640  
7a5d0fbb Hugh Dickins    2011-08-03  641  	spin_lock_irq(&mapping->tree_lock);
6dbaf22c Johannes Weiner 2014-04-03  642  	old = radix_tree_delete_item(&mapping->page_tree, index, radswap);
7a5d0fbb Hugh Dickins    2011-08-03  643  	spin_unlock_irq(&mapping->tree_lock);
6dbaf22c Johannes Weiner 2014-04-03  644  	if (old != radswap)
6dbaf22c Johannes Weiner 2014-04-03  645  		return -ENOENT;
7a5d0fbb Hugh Dickins    2011-08-03 @646  	free_swap_and_cache(radix_to_swp_entry(radswap));
6dbaf22c Johannes Weiner 2014-04-03  647  	return 0;
7a5d0fbb Hugh Dickins    2011-08-03  648  }
7a5d0fbb Hugh Dickins    2011-08-03  649  
7a5d0fbb Hugh Dickins    2011-08-03  650  /*
6a15a370 Vlastimil Babka 2016-01-14  651   * Determine (in bytes) how many of the shmem object's pages mapped by the
48131e03 Vlastimil Babka 2016-01-14  652   * given offsets are swapped out.
6a15a370 Vlastimil Babka 2016-01-14  653   *
6a15a370 Vlastimil Babka 2016-01-14  654   * This is safe to call without i_mutex or mapping->tree_lock thanks to RCU,

:::::: The code at line 646 was first introduced by commit
:::::: 7a5d0fbb29936fad7f17b1cb001b0c33a5f13328 tmpfs: convert shmem_truncate_range to radix-swap

:::::: TO: Hugh Dickins <hughd@google.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 23562 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-17  1:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-17  1:05 [mmotm:master 110/211] mm/shmem.c:646:2: note: in expansion of macro 'free_swap_and_cache' 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