* [chrome-os:chromeos-5.15 46/49] kernel/sched/core.c:1976:8: error: no member named 'avg' in 'struct sched_entity'
@ 2023-05-08 22:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-08 22:00 UTC (permalink / raw)
To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: 84d17752956a5923569062d140ff52dd047395d6
commit: a43d2bc1ca2ae1d7f8ba7fea5e1da454b9421403 [46/49] CHROMIUM: FROMLIST: sched/fair: Add util_guest for tasks
config: hexagon-randconfig-r041-20230507 (https://download.01.org/0day-ci/archive/20230509/202305090559.gfOGVb5B-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)
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.15
git checkout a43d2bc1ca2ae1d7f8ba7fea5e1da454b9421403
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/sched/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305090559.gfOGVb5B-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:1976:8: error: no member named 'avg' in 'struct sched_entity'
p->se.avg.util_guest = attr->sched_util_min;
~~~~~ ^
kernel/sched/core.c:3533:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
struct rq *rq;
^
1 warning and 1 error generated.
--
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:302:10: note: expanded from macro '__native_word'
(sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
^
include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:302:39: note: expanded from macro '__native_word'
(sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
^
include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:303:10: note: expanded from macro '__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:303:38: note: expanded from macro '__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:49:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:48: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:334:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:322:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:314:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:291:13: note: expanded from macro '__unqual_scalar_typeof'
_Generic((x), \
^
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:298:15: note: expanded from macro '__unqual_scalar_typeof'
default: (x)))
^
>> kernel/sched/fair.c:5808:22: error: no member named 'avg' in 'struct sched_entity'
if (READ_ONCE(p->se.avg.util_guest))
~~~~~ ^
include/asm-generic/rwonce.h:50:14: note: expanded from macro 'READ_ONCE'
__READ_ONCE(x); \
^
include/asm-generic/rwonce.h:44:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
>> kernel/sched/fair.c:5808:2: error: statement requires expression of scalar type ('void' invalid)
if (READ_ONCE(p->se.avg.util_guest))
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9 errors generated.
vim +1976 kernel/sched/core.c
1972
1973 if (likely(!(attr->sched_flags & SCHED_FLAG_UTIL_GUEST)))
1974 return;
1975
> 1976 p->se.avg.util_guest = attr->sched_util_min;
1977 }
1978
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-08 22:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-08 22:00 [chrome-os:chromeos-5.15 46/49] kernel/sched/core.c:1976:8: error: no member named 'avg' in 'struct sched_entity' 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.