[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202506261829.It6MPDTn-lkp@intel.com>
Date: Thu, 26 Jun 2025 18:09:09 +0800
From: kernel test robot <lkp@...el.com>
To: "Gustavo A. R. Silva" <gustavoars@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
"Gustavo A. R. Silva" <gustavo@...eddedor.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: [gustavoars:testing/wfamnae-next20250616 14/19]
kernel/sched/ext.c:3712:10: error: incompatible pointer types returning
'struct cgroup_hdr *' from a function with result type 'struct cgroup *'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20250616
head: 78f053980ba50a0becae798ab7d07527d97e790d
commit: 803cca907129bd7f15b4d9e16fe9585d1f69782c [14/19] cgroup: Avoid -Wflex-array-member-not-at-end warnings
config: x86_64-buildonly-randconfig-005-20250626 (https://download.01.org/0day-ci/archive/20250626/202506261829.It6MPDTn-lkp@intel.com/config)
compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250626/202506261829.It6MPDTn-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506261829.It6MPDTn-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/build_policy.c:61:
>> kernel/sched/ext.c:3712:10: error: incompatible pointer types returning 'struct cgroup_hdr *' from a function with result type 'struct cgroup *' [-Werror,-Wincompatible-pointer-types]
3712 | return &cgrp_dfl_root.cgrp;
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/ext.c:7407:17: error: incompatible pointer types initializing 'struct cgroup *' with an expression of type 'struct cgroup_hdr *' [-Werror,-Wincompatible-pointer-types]
7407 | struct cgroup *cgrp = &cgrp_dfl_root.cgrp;
| ^ ~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +3712 kernel/sched/ext.c
f0e1a0643a59bf Tejun Heo 2024-06-18 3700
8195136669661f Tejun Heo 2024-09-04 3701 #ifdef CONFIG_EXT_GROUP_SCHED
8195136669661f Tejun Heo 2024-09-04 3702 static struct cgroup *tg_cgrp(struct task_group *tg)
8195136669661f Tejun Heo 2024-09-04 3703 {
8195136669661f Tejun Heo 2024-09-04 3704 /*
8195136669661f Tejun Heo 2024-09-04 3705 * If CGROUP_SCHED is disabled, @tg is NULL. If @tg is an autogroup,
8195136669661f Tejun Heo 2024-09-04 3706 * @tg->css.cgroup is NULL. In both cases, @tg can be treated as the
8195136669661f Tejun Heo 2024-09-04 3707 * root cgroup.
8195136669661f Tejun Heo 2024-09-04 3708 */
8195136669661f Tejun Heo 2024-09-04 3709 if (tg && tg->css.cgroup)
8195136669661f Tejun Heo 2024-09-04 3710 return tg->css.cgroup;
8195136669661f Tejun Heo 2024-09-04 3711 else
8195136669661f Tejun Heo 2024-09-04 @3712 return &cgrp_dfl_root.cgrp;
8195136669661f Tejun Heo 2024-09-04 3713 }
8195136669661f Tejun Heo 2024-09-04 3714
:::::: The code at line 3712 was first introduced by commit
:::::: 8195136669661fdfe54e9a8923c33b31c92fc1da sched_ext: Add cgroup support
:::::: TO: Tejun Heo <tj@...nel.org>
:::::: CC: Tejun Heo <tj@...nel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists