Hi Viresh,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/sched/core]
[cannot apply to tip/auto-latest pm/linux-next linus/master v5.8-rc5 next-20200713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Viresh-Kumar/cpufreq_cooling-Get...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
9d246053a69196c7c27068870e9b4b66ac536f68
config: x86_64-allnoconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:300:10: note: expanded from macro
'__native_word'
(sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:300:39: note: expanded from macro
'__native_word'
(sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:301:10: note: expanded from macro
'__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:301:38: note: expanded from macro
'__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:48: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:284:25: note: expanded from macro
'__READ_ONCE_SCALAR'
__unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
^
include/linux/compiler_types.h:288:13: note: expanded from macro
'__unqual_scalar_typeof'
_Generic((x), \
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:284:46: note: expanded from macro
'__READ_ONCE_SCALAR'
__unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
^
include/linux/compiler.h:280:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:288:13: note: expanded from macro
'__unqual_scalar_typeof'
_Generic((x), \
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:284:46: note: expanded from macro
'__READ_ONCE_SCALAR'
__unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
^
include/linux/compiler.h:280:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:23: error: no member named
'avg_dl' in 'struct rq'
return
READ_ONCE(rq->avg_dl.util_avg);
~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:286:10: note: expanded from macro
'__READ_ONCE_SCALAR'
(typeof(x))__x; \
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2493:9: error: returning 'void' from
a function with incompatible result type 'unsigned long'
return
READ_ONCE(rq->avg_dl.util_avg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:289:28: note: expanded from macro 'READ_ONCE'
#define READ_ONCE(x) \
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:300:10: note: expanded from macro
'__native_word'
(sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:300:39: note: expanded from macro
'__native_word'
(sizeof(t) == sizeof(char) || sizeof(t) == sizeof(short) || \
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:301:10: note: expanded from macro
'__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:35: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler_types.h:301:38: note: expanded from macro
'__native_word'
sizeof(t) == sizeof(int) || sizeof(t) == sizeof(long))
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:291:33: note: expanded from macro 'READ_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/linux/compiler.h:405:48: note: expanded from macro
'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
include/linux/compiler.h:392:22: note: expanded from macro
'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler.h:380:23: note: expanded from macro
'_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:372:9: note: expanded from macro
'__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:284:25: note: expanded from macro
'__READ_ONCE_SCALAR'
__unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
^
include/linux/compiler_types.h:288:13: note: expanded from macro
'__unqual_scalar_typeof'
_Generic((x), \
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:284:46: note: expanded from macro
'__READ_ONCE_SCALAR'
__unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
^
include/linux/compiler.h:280:65: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
include/linux/compiler_types.h:288:13: note: expanded from macro
'__unqual_scalar_typeof'
_Generic((x), \
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:284:46: note: expanded from macro
'__READ_ONCE_SCALAR'
__unqual_scalar_typeof(x) __x = __READ_ONCE(x); \
^
include/linux/compiler.h:280:72: note: expanded from macro '__READ_ONCE'
#define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
^
In file included from kernel/sched/core.c:13:
> kernel/sched/sched.h:2498:41: error: no member named
'avg' in 'struct cfs_rq'
unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
~~~~~~~ ^
include/linux/compiler.h:292:21: note: expanded from macro 'READ_ONCE'
__READ_ONCE_SCALAR(x); \
^
include/linux/compiler.h:286:10: note: expanded from macro
'__READ_ONCE_SCALAR'
(typeof(x))__x; \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +2493 kernel/sched/sched.h
d4edd662ac1657 Juri Lelli 2017-12-04 2490
8cc90515a4fa41 Vincent Guittot 2018-06-28 2491 static inline unsigned long
cpu_util_dl(struct rq *rq)
8cc90515a4fa41 Vincent Guittot 2018-06-28 2492 {
8cc90515a4fa41 Vincent Guittot 2018-06-28 @2493 return
READ_ONCE(rq->avg_dl.util_avg);
8cc90515a4fa41 Vincent Guittot 2018-06-28 2494 }
8cc90515a4fa41 Vincent Guittot 2018-06-28 2495
d4edd662ac1657 Juri Lelli 2017-12-04 2496 static inline unsigned long
cpu_util_cfs(struct rq *rq)
d4edd662ac1657 Juri Lelli 2017-12-04 2497 {
a07630b8b2c16f Patrick Bellasi 2018-03-09 @2498 unsigned long util =
READ_ONCE(rq->cfs.avg.util_avg);
a07630b8b2c16f Patrick Bellasi 2018-03-09 2499
a07630b8b2c16f Patrick Bellasi 2018-03-09 2500 if (sched_feat(UTIL_EST)) {
a07630b8b2c16f Patrick Bellasi 2018-03-09 2501 util = max_t(unsigned long, util,
a07630b8b2c16f Patrick Bellasi 2018-03-09 2502
READ_ONCE(rq->cfs.avg.util_est.enqueued));
a07630b8b2c16f Patrick Bellasi 2018-03-09 2503 }
a07630b8b2c16f Patrick Bellasi 2018-03-09 2504
a07630b8b2c16f Patrick Bellasi 2018-03-09 2505 return util;
d4edd662ac1657 Juri Lelli 2017-12-04 2506 }
371bf42732694d Vincent Guittot 2018-06-28 2507
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org