Re: [PATCH v7 3/4] mm,page_owner: Display all stacks and their count

From: kernel test robot
Date: Fri Feb 09 2024 - 18:15:00 EST

Hi Oscar,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-nonmm-unstable]
[also build test WARNING on linus/master v6.8-rc3]
[cannot apply to akpm-mm/mm-everything next-20240209]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in]

base: mm-nonmm-unstable
patch link:
patch subject: [PATCH v7 3/4] mm,page_owner: Display all stacks and their count
config: x86_64-randconfig-121-20240209 (
compiler: clang version 17.0.6 ( 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (

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:

sparse warnings: (new ones prefixed by >>)
>> mm/page_owner.c:828:30: sparse: sparse: symbol 'page_owner_stack_operations' was not declared. Should it be static?
mm/page_owner.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false

vim +/page_owner_stack_operations +828 mm/page_owner.c

> 828 const struct file_operations page_owner_stack_operations = {
829 .open = page_owner_stack_open,
830 .read = seq_read,
831 .llseek = seq_lseek,
832 .release = seq_release,
833 };

0-DAY CI Kernel Test Service