GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>
Cc: [email protected]
Subject: [ammarfaizi2-block:google/android/kernel/common/android12-kiwi-5.10 242/9999] kernel/sched/fair.c:4424:6: warning: no previous prototype for 'set_next_entity'
Date: Sat, 17 Sep 2022 06:25:01 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

Hi lijianzhong,

FYI, the error/warning still remains.

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-kiwi-5.10
head:   edf4da79d443f97049926ace891b5d6d235f7539
commit: 54f66141a8834e27601fe594d68a97db01bb86b6 [242/9999] ANDROID: sched: Add vendor hooks for sched.
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220917/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/ammarfaizi2/linux-block/commit/54f66141a8834e27601fe594d68a97db01bb86b6
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-kiwi-5.10
        git checkout 54f66141a8834e27601fe594d68a97db01bb86b6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> kernel/sched/fair.c:4424:6: warning: no previous prototype for 'set_next_entity' [-Wmissing-prototypes]
    4424 | void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
         |      ^~~~~~~~~~~~~~~


vim +/set_next_entity +4424 kernel/sched/fair.c

  4423	
> 4424	void set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)
  4425	{
  4426		/* 'current' is not kept within the tree. */
  4427		if (se->on_rq) {
  4428			/*
  4429			 * Any task has to be enqueued before it get to execute on
  4430			 * a CPU. So account for the time it spent waiting on the
  4431			 * runqueue.
  4432			 */
  4433			update_stats_wait_end(cfs_rq, se);
  4434			__dequeue_entity(cfs_rq, se);
  4435			update_load_avg(cfs_rq, se, UPDATE_TG);
  4436		}
  4437	
  4438		update_stats_curr_start(cfs_rq, se);
  4439		cfs_rq->curr = se;
  4440	
  4441		/*
  4442		 * Track our maximum slice length, if the CPU's load is at
  4443		 * least twice that of our own weight (i.e. dont track it
  4444		 * when there are only lesser-weight tasks around):
  4445		 */
  4446		if (schedstat_enabled() &&
  4447		    rq_of(cfs_rq)->cfs.load.weight >= 2*se->load.weight) {
  4448			schedstat_set(se->statistics.slice_max,
  4449				max((u64)schedstat_val(se->statistics.slice_max),
  4450				    se->sum_exec_runtime - se->prev_sum_exec_runtime));
  4451		}
  4452	
  4453		se->prev_sum_exec_runtime = se->sum_exec_runtime;
  4454	}
  4455	EXPORT_SYMBOL_GPL(set_next_entity);
  4456	
  4457	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-09-16 22:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox