fs/resctrl2/kernfs.c:6:19: sparse: sparse: symbol 'resctrl_file_ops' was not declared. Should it be static?
kernel test robot
build bottree: 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 Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki