linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mm/sparse.c:347:27: warning: unused function 'pgdat_to_phys'
@ 2023-01-20 17:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-20 17:45 UTC (permalink / raw)
  To: Miles Chen
  Cc: llvm, oe-kbuild-all, linux-kernel, Andrew Morton,
	Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d368967cb1039b5c4cccb62b5a4b9468c50cd143
commit: ccbd6283a9b640c8d5c2b44db318fd72a63338ff mm/sparse: fix check_usemap_section_nr warnings
date:   1 year, 7 months ago
config: x86_64-randconfig-a003-20230116 (https://download.01.org/0day-ci/archive/20230121/202301210155.1E5zABb5-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ccbd6283a9b640c8d5c2b44db318fd72a63338ff
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout ccbd6283a9b640c8d5c2b44db318fd72a63338ff
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> mm/sparse.c:347:27: warning: unused function 'pgdat_to_phys' [-Wunused-function]
   static inline phys_addr_t pgdat_to_phys(struct pglist_data *pgdat)
                             ^
   1 warning generated.


vim +/pgdat_to_phys +347 mm/sparse.c

   346	
 > 347	static inline phys_addr_t pgdat_to_phys(struct pglist_data *pgdat)
   348	{
   349	#ifndef CONFIG_NEED_MULTIPLE_NODES
   350		return __pa_symbol(pgdat);
   351	#else
   352		return __pa(pgdat);
   353	#endif
   354	}
   355	

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

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

only message in thread, other threads:[~2023-01-20 17:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-20 17:45 mm/sparse.c:347:27: warning: unused function 'pgdat_to_phys' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).