[aegl:resctrl2_patches 9/52] fs/resctrl2/kernfs.c:6:19: sparse: sparse: symbol 'resctrl_file_ops' was not declared. Should it be static?

kernel test robot <[email protected]> Fri, 10 Nov 2023 01:09:27 +0800
Newsgroups gmane.linux.ports.ia64
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git resctrl2_patches
head:   a6866c2d6be6dd4997cd46120e288fe0b5e16c9b
commit: eca79ecf33e9c18bcfe7c9c39f2cad22092057ab [9/52] resctrl2: Modules can add file(s) in their info/ directory
config: i386-randconfig-062-20230922 (https://download.01.org/0day-ci/archive/20231109/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231109/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> fs/resctrl2/kernfs.c:6:19: sparse: sparse: symbol 'resctrl_file_ops' was not declared. Should it be static?

vim +/resctrl_file_ops +6 fs/resctrl2/kernfs.c

     5	
   > 6	struct kernfs_ops resctrl_file_ops = {
     7		.atomic_write_len	= PAGE_SIZE,
     8	};
     9	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki