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

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@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/202511282009.VCbXC9Zw-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/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

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

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

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-28 12:01 [openeuler:OLK-6.6 3355/3355] kernel/xsched/core.c:189:5: warning: no previous prototype for function 'xsched_xse_set_class' 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.