* [chrome-os:chromeos-5.4 30/42] kernel/sched/core.c:8151:46: error: 'struct task_struct' has no member named 'sched_task_group'
@ 2021-07-05 17:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-05 17:43 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 6006 bytes --]
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 278e8a5243fec7898c1aa20fde9a51f1306f58c9
commit: 0cb90298895b805bac6bfb06ba2b4ffd87a47e25 [30/42] Revert "FROMLIST: sched/fair: core wide vruntime comparison"
config: arm64-randconfig-r003-20210705 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.4
git checkout 0cb90298895b805bac6bfb06ba2b4ffd87a47e25
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/sched/core.c:2736:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
2736 | void sched_set_stop_task(int cpu, struct task_struct *stop)
| ^~~~~~~~~~~~~~~~~~~
kernel/sched/core.c:5359:35: warning: no previous prototype for 'schedule_user' [-Wmissing-prototypes]
5359 | asmlinkage __visible void __sched schedule_user(void)
| ^~~~~~~~~~~~~
kernel/sched/core.c: In function 'task_set_core_sched':
>> kernel/sched/core.c:8151:46: error: 'struct task_struct' has no member named 'sched_task_group'
8151 | (tsk->core_cookie == (unsigned long)tsk->sched_task_group)) {
| ^~
vim +8151 kernel/sched/core.c
4b988b06c222f5 Joel Fernandes 2020-02-28 8120
24b371ab2dbd9b Joel Fernandes 2020-09-25 8121 int task_set_core_sched(int set, struct task_struct *tsk,
24b371ab2dbd9b Joel Fernandes 2020-09-25 8122 unsigned long cookie)
4b988b06c222f5 Joel Fernandes 2020-02-28 8123 {
4b988b06c222f5 Joel Fernandes 2020-02-28 8124 if (!tsk)
4b988b06c222f5 Joel Fernandes 2020-02-28 8125 tsk = current;
4b988b06c222f5 Joel Fernandes 2020-02-28 8126
4b988b06c222f5 Joel Fernandes 2020-02-28 8127 if (set != 0 && set != 1)
4b988b06c222f5 Joel Fernandes 2020-02-28 8128 return -ERANGE;
4b988b06c222f5 Joel Fernandes 2020-02-28 8129
4b988b06c222f5 Joel Fernandes 2020-02-28 8130 if (!static_branch_likely(&sched_smt_present))
4b988b06c222f5 Joel Fernandes 2020-02-28 8131 return -EINVAL;
4b988b06c222f5 Joel Fernandes 2020-02-28 8132
4b988b06c222f5 Joel Fernandes 2020-02-28 8133 if (!sched_feat(CORE_PRCTL))
4b988b06c222f5 Joel Fernandes 2020-02-28 8134 return -ENOSYS;
4b988b06c222f5 Joel Fernandes 2020-02-28 8135
4b988b06c222f5 Joel Fernandes 2020-02-28 8136 if (set == 0 && !capable(CAP_SYS_ADMIN))
4b988b06c222f5 Joel Fernandes 2020-02-28 8137 return -EPERM;
4b988b06c222f5 Joel Fernandes 2020-02-28 8138
4b988b06c222f5 Joel Fernandes 2020-02-28 8139 /*
4b988b06c222f5 Joel Fernandes 2020-02-28 8140 * If cookie was set previously, return -EBUSY if either of the
4b988b06c222f5 Joel Fernandes 2020-02-28 8141 * following are true:
4b988b06c222f5 Joel Fernandes 2020-02-28 8142 * 1. Task was previously tagged by CGroup method.
4b988b06c222f5 Joel Fernandes 2020-02-28 8143 * 2. Task or its parent were tagged by prctl().
4b988b06c222f5 Joel Fernandes 2020-02-28 8144 *
4b988b06c222f5 Joel Fernandes 2020-02-28 8145 * Note that, if CGroup tagging is done after prctl(), then that would
4b988b06c222f5 Joel Fernandes 2020-02-28 8146 * override the cookie. However, if prctl() is done after task was
4b988b06c222f5 Joel Fernandes 2020-02-28 8147 * added to tagged CGroup, then the prctl() returns -EBUSY.
4b988b06c222f5 Joel Fernandes 2020-02-28 8148 */
4b988b06c222f5 Joel Fernandes 2020-02-28 8149 if (!!tsk->core_cookie == set) {
4b988b06c222f5 Joel Fernandes 2020-02-28 8150 if ((tsk->core_cookie == (unsigned long)tsk) ||
4b988b06c222f5 Joel Fernandes 2020-02-28 @8151 (tsk->core_cookie == (unsigned long)tsk->sched_task_group)) {
4b988b06c222f5 Joel Fernandes 2020-02-28 8152 return -EBUSY;
4b988b06c222f5 Joel Fernandes 2020-02-28 8153 }
4b988b06c222f5 Joel Fernandes 2020-02-28 8154 }
4b988b06c222f5 Joel Fernandes 2020-02-28 8155
4b988b06c222f5 Joel Fernandes 2020-02-28 8156 if (set)
4b988b06c222f5 Joel Fernandes 2020-02-28 8157 sched_core_get();
4b988b06c222f5 Joel Fernandes 2020-02-28 8158
24b371ab2dbd9b Joel Fernandes 2020-09-25 8159 if (cookie)
24b371ab2dbd9b Joel Fernandes 2020-09-25 8160 tsk->core_cookie = cookie;
24b371ab2dbd9b Joel Fernandes 2020-09-25 8161 else
4b988b06c222f5 Joel Fernandes 2020-02-28 8162 tsk->core_cookie = set ? (unsigned long)tsk : 0;
4b988b06c222f5 Joel Fernandes 2020-02-28 8163
4b988b06c222f5 Joel Fernandes 2020-02-28 8164 stop_machine(task_set_core_sched_stopper, (void *)tsk, NULL);
4b988b06c222f5 Joel Fernandes 2020-02-28 8165
4b988b06c222f5 Joel Fernandes 2020-02-28 8166 if (!set)
4b988b06c222f5 Joel Fernandes 2020-02-28 8167 sched_core_put();
4b988b06c222f5 Joel Fernandes 2020-02-28 8168 return 0;
4b988b06c222f5 Joel Fernandes 2020-02-28 8169 }
4b988b06c222f5 Joel Fernandes 2020-02-28 8170 #endif
4b988b06c222f5 Joel Fernandes 2020-02-28 8171
:::::: The code at line 8151 was first introduced by commit
:::::: 4b988b06c222f5eea05bf28aaf24b904e653c505 CHROMIUM: sched: Add a per-thread core scheduling interface
:::::: TO: Joel Fernandes <joelaf@google.com>
:::::: CC: Commit Bot <commit-bot@chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28534 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-05 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 17:43 [chrome-os:chromeos-5.4 30/42] kernel/sched/core.c:8151:46: error: 'struct task_struct' has no member named 'sched_task_group' 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.