From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org, Yipeng Zou <zouyipeng@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-5.10 2579/2579] kernel/sched/core.c:9632:74: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'int'
Date: Fri, 13 Dec 2024 05:17:20 +0800 [thread overview]
Message-ID: <202412130534.AeGefPCj-lkp@intel.com> (raw)
tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ff5378fff024fcb2552e6da22811cf933fe4a4c0
commit: 00d37128abe2687fac974c5d21aa67fac6518c7c [2579/2579] sched: Introduce smart grid scheduling strategy for cfs
config: arm64-randconfig-002-20241213 (https://download.01.org/0day-ci/archive/20241213/202412130534.AeGefPCj-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241213/202412130534.AeGefPCj-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/202412130534.AeGefPCj-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/sched/core.c:2746:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2746 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9530:5: warning: no previous prototype for 'tg_set_dynamic_affinity_mode' [-Wmissing-prototypes]
9530 | int tg_set_dynamic_affinity_mode(struct task_group *tg, u64 mode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9567:5: warning: no previous prototype for 'tg_set_affinity_period' [-Wmissing-prototypes]
9567 | int tg_set_affinity_period(struct task_group *tg, u64 period_ms)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9578:5: warning: no previous prototype for 'tg_get_affinity_period' [-Wmissing-prototypes]
9578 | u64 tg_get_affinity_period(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: In function 'cpu_affinity_stat_show':
>> kernel/sched/core.c:9632:74: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'int' [-Wformat=]
9632 | seq_printf(sf, "sd_level %d, cpu list %*pbl, stay_cnt %llu\n",
| ~~~^
| |
| long long unsigned int
| %u
vim +9632 kernel/sched/core.c
9619
9620 static int cpu_affinity_stat_show(struct seq_file *sf, void *v)
9621 {
9622 struct task_group *tg = css_tg(seq_css(sf));
9623 struct auto_affinity *auto_affi = tg->auto_affinity;
9624 struct affinity_domain *ad = &auto_affi->ad;
9625 int i;
9626
9627 seq_printf(sf, "period_active %d\n", auto_affi->period_active);
9628 seq_printf(sf, "dcount %d\n", ad->dcount);
9629 seq_printf(sf, "domain_mask 0x%x\n", ad->domain_mask);
9630 seq_printf(sf, "curr_level %d\n", ad->curr_level);
9631 for (i = 0; i < ad->dcount; i++)
> 9632 seq_printf(sf, "sd_level %d, cpu list %*pbl, stay_cnt %llu\n",
9633 i, cpumask_pr_args(ad->domains[i]),
9634 schedstat_val(ad->stay_cnt[i]));
9635
9636 return 0;
9637 }
9638 #endif /* CONFIG_QOS_SCHED_SMART_GRID */
9639
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-12-12 21:17 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 \
--in-reply-to=202412130534.AeGefPCj-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=zouyipeng@huawei.com \
/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 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.