From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars:testing/wfamnae-next20241114 1/22] kernel/sched/ext.c:3765:10: error: incompatible pointer types returning 'struct cgroup_hdr *' from a function with result type 'struct cgroup *'
Date: Mon, 18 Nov 2024 09:22:16 +0800 [thread overview]
Message-ID: <202411180931.Jr9Zovhz-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20241114
head: ffa0ea7cd2216fa4db0e24844e1675e94b7db1aa
commit: 0fd0709da703a3bd95ed738a114858aa57e3d712 [1/22] cgroup: Avoid -Wflex-array-member-not-at-end warnings
config: powerpc64-randconfig-001-20241118 (https://download.01.org/0day-ci/archive/20241118/202411180931.Jr9Zovhz-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241118/202411180931.Jr9Zovhz-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/202411180931.Jr9Zovhz-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/build_policy.c:63:
>> kernel/sched/ext.c:3765:10: error: incompatible pointer types returning 'struct cgroup_hdr *' from a function with result type 'struct cgroup *' [-Werror,-Wincompatible-pointer-types]
return &cgrp_dfl_root.cgrp;
^~~~~~~~~~~~~~~~~~~
>> kernel/sched/ext.c:7533:17: error: incompatible pointer types initializing 'struct cgroup *' with an expression of type 'struct cgroup_hdr *' [-Werror,-Wincompatible-pointer-types]
struct cgroup *cgrp = &cgrp_dfl_root.cgrp;
^ ~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +3765 kernel/sched/ext.c
f0e1a0643a59bf Tejun Heo 2024-06-18 3753
8195136669661f Tejun Heo 2024-09-04 3754 #ifdef CONFIG_EXT_GROUP_SCHED
8195136669661f Tejun Heo 2024-09-04 3755 static struct cgroup *tg_cgrp(struct task_group *tg)
8195136669661f Tejun Heo 2024-09-04 3756 {
8195136669661f Tejun Heo 2024-09-04 3757 /*
8195136669661f Tejun Heo 2024-09-04 3758 * If CGROUP_SCHED is disabled, @tg is NULL. If @tg is an autogroup,
8195136669661f Tejun Heo 2024-09-04 3759 * @tg->css.cgroup is NULL. In both cases, @tg can be treated as the
8195136669661f Tejun Heo 2024-09-04 3760 * root cgroup.
8195136669661f Tejun Heo 2024-09-04 3761 */
8195136669661f Tejun Heo 2024-09-04 3762 if (tg && tg->css.cgroup)
8195136669661f Tejun Heo 2024-09-04 3763 return tg->css.cgroup;
8195136669661f Tejun Heo 2024-09-04 3764 else
8195136669661f Tejun Heo 2024-09-04 @3765 return &cgrp_dfl_root.cgrp;
8195136669661f Tejun Heo 2024-09-04 3766 }
8195136669661f Tejun Heo 2024-09-04 3767
:::::: The code at line 3765 was first introduced by commit
:::::: 8195136669661fdfe54e9a8923c33b31c92fc1da sched_ext: Add cgroup support
:::::: TO: Tejun Heo <tj@kernel.org>
:::::: CC: Tejun Heo <tj@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-11-18 1:22 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=202411180931.Jr9Zovhz-lkp@intel.com \
--to=lkp@intel.com \
--cc=gustavo@embeddedor.com \
--cc=gustavoars@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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
all inboxes | Powered by JetHome®