lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208280710.5Qy7NnB7-lkp@intel.com>
Date:   Sun, 28 Aug 2022 07:59:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Michal Hocko <mhocko@...e.com>
Cc:     kbuild-all@...ts.01.org, Ammar Faizi <ammarfaizi2@...weeb.org>,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: [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'

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/202208280710.5Qy7NnB7-lkp@intel.com/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 <lkp@...el.com>

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 <mhocko@...e.com>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ