lkml.org 
[lkml]   [2021]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectmm/page_alloc.c:3480:15: warning: no previous prototype for 'should_fail_alloc_page'
Hi Alexei,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: debe436e77c72fcee804fb867f275e6d31aa999c
commit: 76cd61739fd107a7f7ec4c24a045e98d8ee150f0 mm/error_inject: Fix allow_error_inject function signatures.
date: 1 year, 2 months ago
config: nds32-buildonly-randconfig-r002-20210927 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=76cd61739fd107a7f7ec4c24a045e98d8ee150f0
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 76cd61739fd107a7f7ec4c24a045e98d8ee150f0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32

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

All warnings (new ones prefixed by >>):

>> mm/page_alloc.c:3480:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes]
3480 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
mm/page_alloc.c:6120:23: warning: no previous prototype for 'memmap_init' [-Wmissing-prototypes]
6120 | void __meminit __weak memmap_init(unsigned long size, int nid,
| ^~~~~~~~~~~


vim +/should_fail_alloc_page +3480 mm/page_alloc.c

3479
> 3480 noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
3481 {
3482 return __should_fail_alloc_page(gfp_mask, order);
3483 }
3484 ALLOW_ERROR_INJECTION(should_fail_alloc_page, TRUE);
3485

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-11 16:47    [W:0.044 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site