All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-6.6 3355/3355] kernel/xsched/core.c:497:12: warning: no previous prototype for function 'xsched_sched_init'
@ 2025-11-28 13:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-28 13:44 UTC (permalink / raw)
  To: kernel, Zicheng Qu; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   ae3faae9efa6dabe1e7613b5e5d3758ffaefb86a
commit: 832ec54e11a079d968d8f23780ab455b1537b214 [3355/3355] xsched: Add xsched RT class
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20251128/202511282111.LvHs2qlX-lkp@intel.com/config)
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/202511282111.LvHs2qlX-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511282111.LvHs2qlX-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:497:12: warning: no previous prototype for function 'xsched_sched_init' [-Wmissing-prototypes]
     497 | __init int xsched_sched_init(void)
         |            ^
   kernel/xsched/core.c:497:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
     497 | __init int xsched_sched_init(void)
         |        ^
         |        static 
   kernel/xsched/core.c:296:20: warning: unused function 'should_preempt' [-Wunused-function]
     296 | static inline bool should_preempt(struct xsched_entity *xse)
         |                    ^~~~~~~~~~~~~~
   3 warnings generated.
--
>> kernel/xsched/rt.c:207:6: warning: no previous prototype for function 'rq_init_rt' [-Wmissing-prototypes]
     207 | void rq_init_rt(struct xsched_cu *xcu)
         |      ^
   kernel/xsched/rt.c:207:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     207 | void rq_init_rt(struct xsched_cu *xcu)
         | ^
         | static 
>> kernel/xsched/rt.c:218:6: warning: no previous prototype for function 'xse_init_rt' [-Wmissing-prototypes]
     218 | void xse_init_rt(struct xsched_entity *xse)
         |      ^
   kernel/xsched/rt.c:218:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     218 | void xse_init_rt(struct xsched_entity *xse)
         | ^
         | static 
>> kernel/xsched/rt.c:228:6: warning: no previous prototype for function 'xse_deinit_rt' [-Wmissing-prototypes]
     228 | void xse_deinit_rt(struct xsched_entity *xse)
         |      ^
   kernel/xsched/rt.c:228:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     228 | void xse_deinit_rt(struct xsched_entity *xse)
         | ^
         | static 
   3 warnings generated.


vim +/xsched_sched_init +497 kernel/xsched/core.c

   496	
 > 497	__init int xsched_sched_init(void)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-28 13:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-28 13:44 [openeuler:OLK-6.6 3355/3355] kernel/xsched/core.c:497:12: warning: no previous prototype for function 'xsched_sched_init' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.