[mel:mm-zonelistupdate-v1r5 1/1] mm/page_alloc.c:4717:1: sparse: sparse: symbol 'zonelist_update_seq' was not declared. Should it be static?

From: kernel test robot
Date: Wed Aug 24 2022 - 19:34:35 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git mm-zonelistupdate-v1r5
head: bfc5d44237a98913807e97da064a26a5bd6f49ce
commit: bfc5d44237a98913807e97da064a26a5bd6f49ce [1/1] mm/page_alloc: Fix race condition between build_all_zonelists and page allocation
config: x86_64-randconfig-s022 (https://download.01.org/0day-ci/archive/20220825/202208250714.TQ945nn2-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git/commit/?id=bfc5d44237a98913807e97da064a26a5bd6f49ce
git remote add mel https://git.kernel.org/pub/scm/linux/kernel/git/mel/linux.git
git fetch --no-tags mel mm-zonelistupdate-v1r5
git checkout bfc5d44237a98913807e97da064a26a5bd6f49ce
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

sparse warnings: (new ones prefixed by >>)
>> mm/page_alloc.c:4717:1: sparse: sparse: symbol 'zonelist_update_seq' was not declared. Should it be static?
mm/page_alloc.c:3467:6: sparse: sparse: context imbalance in 'free_unref_page' - different lock contexts for basic block
mm/page_alloc.c:3574:17: sparse: sparse: context imbalance in 'free_unref_page_list' - unexpected unlock
mm/page_alloc.c:3778:20: sparse: sparse: context imbalance in 'rmqueue_pcplist' - different lock contexts for basic block
mm/page_alloc.c:5497:9: sparse: sparse: context imbalance in '__alloc_pages_bulk' - different lock contexts for basic block

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