[linux-next:master 10516/10830] mm/zsmalloc.c:742:23: warning: 'get_zspage_lockless' defined but 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:   20af1ca418d2c0b11bc2a1fe8c0c88f67bcc2a7e
commit: 2258bdebb55e3ad3d30fd3849ddb955ff36825de [10516/10830] mm/zsmalloc: don't hold locks of all pages when free_zspage()
config: m68k-hp300_defconfig (https://download.01.org/0day-ci/archive/20240228/202402282356.8HzbImAg-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240228/202402282356.8HzbImAg-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402282356.8HzbImAg-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> mm/zsmalloc.c:742:23: warning: 'get_zspage_lockless' defined but not used [-Wunused-function]
     742 | static struct zspage *get_zspage_lockless(struct page *page)
         |                       ^~~~~~~~~~~~~~~~~~~
   mm/zsmalloc.c:288:13: warning: 'kick_deferred_free' defined but not used [-Wunused-function]
     288 | static void kick_deferred_free(struct zs_pool *pool) {}
         |             ^~~~~~~~~~~~~~~~~~


vim +/get_zspage_lockless +742 mm/zsmalloc.c

   740	
   741	/* Only used in zs_page_migrate() to get zspage locklessly. */
 > 742	static struct zspage *get_zspage_lockless(struct page *page)
   743	{
   744		struct zspage __rcu **private = (struct zspage __rcu **)&page->private;
   745	
   746		return rcu_dereference(*private);
   747	}
   748	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[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