lkml.org 
[lkml]   [2021]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[aegl:dsa_page_zero_prototype 30/39] mm/page_alloc.c:167:14: error: 'engine_cleanup' defined but not used
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git dsa_page_zero_prototype
head: 443bff56d346197a2f8c09c7159ebc9e7440429b
commit: 1cbda083dce71e5bcaeae60233ae5ed7eaa519b5 [30/39] mm/pagezero: Add page zero engine register/unregister functions
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/aegl/linux.git/commit/?id=1cbda083dce71e5bcaeae60233ae5ed7eaa519b5
git remote add aegl https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git
git fetch --no-tags aegl dsa_page_zero_prototype
git checkout 1cbda083dce71e5bcaeae60233ae5ed7eaa519b5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc

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

All errors (new ones prefixed by >>):

mm/page_alloc.c:3785:15: error: no previous prototype for 'should_fail_alloc_page' [-Werror=missing-prototypes]
3785 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
>> mm/page_alloc.c:167:14: error: 'engine_cleanup' defined but not used [-Werror=unused-variable]
167 | static int (*engine_cleanup)(int node, void **v);
| ^~~~~~~~~~~~~~
>> mm/page_alloc.c:163:16: error: 'alloc_zone_private' defined but not used [-Werror=unused-variable]
163 | static void *(*alloc_zone_private)(int node);
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


vim +/engine_cleanup +167 mm/page_alloc.c

162
> 163 static void *(*alloc_zone_private)(int node);
164 static int (*get_zero_pages)(void *private, int migratetype, int want,
165 struct list_head *l, int *countp);
166 static void (*provide_page)(void *v, struct page *page);
> 167 static int (*engine_cleanup)(int node, void **v);
168

---
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 23:15    [W:0.027 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site