[linux-next:master 9014/9031] mm/shmem.c:646: warning: value computed is not used

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f8c97bdb49832d2b0edaa0c05db873aa2f6101ff
commit: 0b0a6994b02cac83ae132baea829ff073ca6cbef [9014/9031] mm/unaddressable-memory: new type of ZONE_DEVICE for unaddressable memory
config: x86_64-randconfig-s2-04110006 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        git checkout 0b0a6994b02cac83ae132baea829ff073ca6cbef
        # 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:646: warning: value computed is not used

vim +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@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