llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 4318/4736] arch/x86/mm/init.c:1057:15: warning: no previous prototype for function 'arch_max_swapfile_size'
@ 2022-09-02 23:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-09-02 23:42 UTC (permalink / raw)
  To: Peter Xu
  Cc: llvm, kbuild-all, Linux Memory Management List, Andrew Morton,
	Huang, Ying

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e47eb90a0a9ae20b82635b9b99a8d0979b757ad8
commit: c21e4d92cbb920b50a809409bc56c6ca4f09e7bf [4318/4736] mm/swap: cache maximum swapfile size when init swap
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220903/202209030733.wJOuJq5j-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/next/linux-next.git/commit/?id=c21e4d92cbb920b50a809409bc56c6ca4f09e7bf
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout c21e4d92cbb920b50a809409bc56c6ca4f09e7bf
        # 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 SHELL=/bin/bash arch/x86/mm/

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 >>):

>> arch/x86/mm/init.c:1057:15: warning: no previous prototype for function 'arch_max_swapfile_size' [-Wmissing-prototypes]
   unsigned long arch_max_swapfile_size(void)
                 ^
   arch/x86/mm/init.c:1057:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned long arch_max_swapfile_size(void)
   ^
   static 
   1 warning generated.


vim +/arch_max_swapfile_size +1057 arch/x86/mm/init.c

  1055	
  1056	#ifdef CONFIG_SWAP
> 1057	unsigned long arch_max_swapfile_size(void)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-09-02 23:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02 23:42 [linux-next:master 4318/4736] arch/x86/mm/init.c:1057:15: warning: no previous prototype for function 'arch_max_swapfile_size' 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).