public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:akpm/mm/mm-unstable 298/313] arch/sparc/kernel/setup_32.c:86:9: error: too few arguments to function 'show_free_areas'
@ 2022-08-27 23:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-08-27 23:59 UTC (permalink / raw)
  To: Michal Hocko
  Cc: kbuild-all, Ammar Faizi, GNU/Weeb Mailing List, linux-kernel,
	Andrew Morton, Linux Memory Management List

tree:   https://github.com/ammarfaizi2/linux-block akpm/mm/mm-unstable
head:   47641223db134ff730539d1f03c2e4d8f9607100
commit: e6b756890bbd7fdc97acec0d1ecbd5bd180b1bf3 [298/313] mm: reduce noise in show_mem for lowmem allocations
config: sparc-defconfig (https://download.01.org/0day-ci/archive/20220828/[email protected]/config)
compiler: sparc-linux-gcc (GCC) 12.1.0
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://github.com/ammarfaizi2/linux-block/commit/e6b756890bbd7fdc97acec0d1ecbd5bd180b1bf3
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block akpm/mm/mm-unstable
        git checkout e6b756890bbd7fdc97acec0d1ecbd5bd180b1bf3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

   arch/sparc/kernel/setup_32.c: In function 'prom_sync_me':
>> arch/sparc/kernel/setup_32.c:86:9: error: too few arguments to function 'show_free_areas'
      86 |         show_free_areas(0, NULL);
         |         ^~~~~~~~~~~~~~~
   In file included from arch/sparc/kernel/setup_32.c:12:
   include/linux/mm.h:1845:13: note: declared here
    1845 | extern void show_free_areas(unsigned int flags, nodemask_t *nodemask, gfp_t gfp_mask);
         |             ^~~~~~~~~~~~~~~


vim +/show_free_areas +86 arch/sparc/kernel/setup_32.c

^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   65  
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   66  /* Typing sync at the prom prompt calls the function pointed to by
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   67   * romvec->pv_synchook which I set to the following function.
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   68   * This should sync all filesystems and return, for now it just
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   69   * prints out pretty messages and returns.
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   70   */
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   71  
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   72  /* Pretty sick eh? */
c61c65cdcd1021 arch/sparc/kernel/setup.c    Adrian Bunk       2008-06-05   73  static void prom_sync_me(void)
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   74  {
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   75  	unsigned long prom_tbr, flags;
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   76  
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   77  	/* XXX Badly broken. FIX! - Anton */
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   78  	local_irq_save(flags);
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   79  	__asm__ __volatile__("rd %%tbr, %0\n\t" : "=r" (prom_tbr));
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   80  	__asm__ __volatile__("wr %0, 0x0, %%tbr\n\t"
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   81  			     "nop\n\t"
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   82  			     "nop\n\t"
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   83  			     "nop\n\t" : : "r" (&trapbase));
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   84  
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   85  	prom_printf("PROM SYNC COMMAND...\n");
9af744d743170b arch/sparc/kernel/setup_32.c Michal Hocko      2017-02-22  @86  	show_free_areas(0, NULL);
29f043a2caea28 arch/sparc/kernel/setup_32.c Paul E. McKenney  2011-11-10   87  	if (!is_idle_task(current)) {
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   88  		local_irq_enable();
70f68ee81e2e9a arch/sparc/kernel/setup_32.c Dominik Brodowski 2018-03-14   89  		ksys_sync();
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   90  		local_irq_disable();
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   91  	}
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   92  	prom_printf("Returning to prom\n");
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   93  
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   94  	__asm__ __volatile__("wr %0, 0x0, %%tbr\n\t"
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   95  			     "nop\n\t"
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   96  			     "nop\n\t"
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   97  			     "nop\n\t" : : "r" (prom_tbr));
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   98  	local_irq_restore(flags);
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16   99  }
^1da177e4c3f41 arch/sparc/kernel/setup.c    Linus Torvalds    2005-04-16  100  

:::::: The code at line 86 was first introduced by commit
:::::: 9af744d743170b5f5ef70031dea8d772d166ab28 lib/show_mem.c: teach show_mem to work with the given nodemask

:::::: TO: Michal Hocko <[email protected]>
:::::: CC: Linus Torvalds <[email protected]>

-- 
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-08-28  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-27 23:59 [ammarfaizi2-block:akpm/mm/mm-unstable 298/313] arch/sparc/kernel/setup_32.c:86:9: error: too few arguments to function 'show_free_areas' 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