[reinette:resctrl/controls_rfc_v2 81/88] include/linux/resctrl.h:65:71: warning: declaration of 'struct rdt_resource' will not be visible outside of this function

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git resctrl/controls_rfc_v2
head:   fbed64f80515241bc6da124585328fd5047a4a13
commit: 0e63339f4b31df77e01c52f8c33f31d2a55008f8 [81/88] fs/resctrl: Introduce iterator for enabled controls
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260805/[email protected]/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/[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]/

All warnings (new ones prefixed by >>):

   In file included from fs/proc/base.c:98:
>> include/linux/resctrl.h:65:71: warning: declaration of 'struct rdt_resource' will not be visible outside of this function [-Wvisibility]
      65 | resctrl_enabled_ctrl_iter_next(struct resctrl_ctrl_iter *iter, struct rdt_resource *r);
         |                                                                       ^
   1 warning generated.


vim +65 include/linux/resctrl.h

    63	
    64	struct resctrl_ctrl *
  > 65	resctrl_enabled_ctrl_iter_next(struct resctrl_ctrl_iter *iter, struct rdt_resource *r);
    66	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.