在 2024/8/1 2:19, kernel test robot 写道:
Hi Zhiguo,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Zhiguo-Jiang/mm-move-task_is_dying-to-h-headfile/20240730-215136
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20240730114426.511-3-justinjiang%40vivo.com
patch subject: [PATCH 2/2] mm: tlb: add tlb swap entries batch async release
config: i386-randconfig-061-20240731 (https://download.01.org/0day-ci/archive/20240801/202408010150.13yZScv6-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240801/202408010150.13yZScv6-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408010150.13yZScv6-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
Hi,
I have fix this compilation warning issue in the bellow patch. Please
kindly help to test with this patch.
https://lore.kernel.org/linux-mm/20240801065035.621-1-justinjiang@xxxxxxxx/T/#u
Thanks
Zhiguo
mm/mmu_gather.c:54:10: sparse: sparse: symbol 'nr_exiting_processes' was not declared. Should it be static?
mm/mmu_gather.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h):
include/linux/page-flags.h:235:46: sparse: sparse: self-comparison always evaluates to false
include/linux/page-flags.h:235:46: sparse: sparse: self-comparison always evaluates to false
vim +/nr_exiting_processes +54 mm/mmu_gather.c
53
> 54 atomic_t nr_exiting_processes = ATOMIC_INIT(0);
55 static struct kmem_cache *swap_gather_cachep;
56 static struct workqueue_struct *swapfree_wq;
57 static DEFINE_STATIC_KEY_TRUE(tlb_swap_asyncfree_disabled);
58