[memcg:since-4.12 523/540] mm/shmem.c:660:2: note: in expansion of macro 'free_swap_and_cache'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git since-4.12
head:   ba5e8c23db5729ebdbafad983b07434c829cf5b6
commit: 51b33649873e78b3a7665a339df522ad4d9d2dd8 [523/540] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory
config: cris-etrax-100lx_v2_defconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 51b33649873e78b3a7665a339df522ad4d9d2dd8
        # save the attached .config to linux build tree
        make.cross ARCH=cris 

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:490:55: warning: value computed is not used [-Wunused-value]
    #define free_swap_and_cache(e) (is_migration_entry(e) || is_device_private_entry(e))
                                                          ^
>> mm/shmem.c:660:2: note: in expansion of macro 'free_swap_and_cache'
     free_swap_and_cache(radix_to_swp_entry(radswap));
     ^~~~~~~~~~~~~~~~~~~
--
   In file included from mm/madvise.c:22:0:
   mm/madvise.c: In function 'madvise_free_pte_range':
   include/linux/swap.h:490:55: warning: value computed is not used [-Wunused-value]
    #define free_swap_and_cache(e) (is_migration_entry(e) || is_device_private_entry(e))
                                                          ^
>> mm/madvise.c:353:4: note: in expansion of macro 'free_swap_and_cache'
       free_swap_and_cache(entry);
       ^~~~~~~~~~~~~~~~~~~

vim +/free_swap_and_cache +660 mm/shmem.c

6922c0c7 Hugh Dickins    2011-08-03  646  
6922c0c7 Hugh Dickins    2011-08-03  647  /*
7a5d0fbb Hugh Dickins    2011-08-03  648   * Remove swap entry from radix tree, free the swap and its page cache.
7a5d0fbb Hugh Dickins    2011-08-03  649   */
7a5d0fbb Hugh Dickins    2011-08-03  650  static int shmem_free_swap(struct address_space *mapping,
7a5d0fbb Hugh Dickins    2011-08-03  651  			   pgoff_t index, void *radswap)
7a5d0fbb Hugh Dickins    2011-08-03  652  {
6dbaf22c Johannes Weiner 2014-04-03  653  	void *old;
7a5d0fbb Hugh Dickins    2011-08-03  654  
7a5d0fbb Hugh Dickins    2011-08-03  655  	spin_lock_irq(&mapping->tree_lock);
6dbaf22c Johannes Weiner 2014-04-03  656  	old = radix_tree_delete_item(&mapping->page_tree, index, radswap);
7a5d0fbb Hugh Dickins    2011-08-03  657  	spin_unlock_irq(&mapping->tree_lock);
6dbaf22c Johannes Weiner 2014-04-03  658  	if (old != radswap)
6dbaf22c Johannes Weiner 2014-04-03  659  		return -ENOENT;
7a5d0fbb Hugh Dickins    2011-08-03 @660  	free_swap_and_cache(radix_to_swp_entry(radswap));
6dbaf22c Johannes Weiner 2014-04-03  661  	return 0;
7a5d0fbb Hugh Dickins    2011-08-03  662  }
7a5d0fbb Hugh Dickins    2011-08-03  663  

:::::: The code at line 660 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


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux