[openeuler:OLK-6.6 3355/3355] kernel/xsched/core.c:189:5: warning: no previous prototype for function 'xsched_xse_set_class'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: ae3faae9efa6dabe1e7613b5e5d3758ffaefb86a commit: 76c15076abcb100f7c1204bd1ef0ec55128d6546 [3355/3355] xsched: Add basic scheduler core support config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20251128/202511282009.VCbXC9Zw-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9e9fe08b16ea2c4d9867fb4974edf2a3776d6ece) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251128/202511282009.VCbXC9Zw-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202511282009.VCbXC9Zw-lkp@intel.com/ All warnings (new ones prefixed by >>):
kernel/xsched/core.c:189:5: warning: no previous prototype for function 'xsched_xse_set_class' [-Wmissing-prototypes] 189 | int xsched_xse_set_class(struct xsched_entity *xse) | ^ kernel/xsched/core.c:189:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 189 | int xsched_xse_set_class(struct xsched_entity *xse) | ^ | static kernel/xsched/core.c:289:20: warning: unused function 'should_preempt' [-Wunused-function] 289 | static inline bool should_preempt(struct xsched_entity *xse) | ^~~~~~~~~~~~~~ 2 warnings generated.
vim +/xsched_xse_set_class +189 kernel/xsched/core.c 188
189 int xsched_xse_set_class(struct xsched_entity *xse) 190 { 191 struct xsched_class *sched = xsched_first_class; 192 193 xse->class = sched; 194 return 0; 195 } 196
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot