[pm:intel_pstate-passive 4/5] kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git intel_pstate-passive
head:   b6760ffecadc2c951fd409ec57a3ea4d3141fb51
commit: 80883c3be9f6702b860265a336238b0ee3c54d21 [4/5] cpufreq: intel_pstate: Select schedutil as the default governor
config: x86_64-randconfig-s2-20200325 (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
        git checkout 80883c3be9f6702b860265a336238b0ee3c54d21
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/current.h:5:0,
                    from include/linux/sched.h:12,
                    from kernel/sched/sched.h:5,
                    from kernel/sched/core.c:9:
   kernel/sched/sched.h: In function 'cpu_util_dl':
>> kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'
     return READ_ONCE(rq->avg_dl.util_avg);
                        ^
   include/linux/compiler.h:261:17: note: in definition of macro '__READ_ONCE'
     union { typeof(x) __val; char __c[1]; } __u;   \
                    ^
>> kernel/sched/sched.h:2379:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE(rq->avg_dl.util_avg);
            ^
>> kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'
     return READ_ONCE(rq->avg_dl.util_avg);
                        ^
   include/linux/compiler.h:263:22: note: in definition of macro '__READ_ONCE'
      __read_once_size(&(x), __u.__c, sizeof(x));  \
                         ^
>> kernel/sched/sched.h:2379:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE(rq->avg_dl.util_avg);
            ^
>> kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'
     return READ_ONCE(rq->avg_dl.util_avg);
                        ^
   include/linux/compiler.h:263:42: note: in definition of macro '__READ_ONCE'
      __read_once_size(&(x), __u.__c, sizeof(x));  \
                                             ^
>> kernel/sched/sched.h:2379:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE(rq->avg_dl.util_avg);
            ^
>> kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'
     return READ_ONCE(rq->avg_dl.util_avg);
                        ^
   include/linux/compiler.h:265:30: note: in definition of macro '__READ_ONCE'
      __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
                                 ^
>> kernel/sched/sched.h:2379:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE(rq->avg_dl.util_avg);
            ^
>> kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'
     return READ_ONCE(rq->avg_dl.util_avg);
                        ^
   include/linux/compiler.h:265:50: note: in definition of macro '__READ_ONCE'
      __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
                                                     ^
>> kernel/sched/sched.h:2379:9: note: in expansion of macro 'READ_ONCE'
     return READ_ONCE(rq->avg_dl.util_avg);
            ^
   kernel/sched/sched.h: In function 'cpu_util_cfs':
>> kernel/sched/sched.h:2384:40: error: 'struct cfs_rq' has no member named 'avg'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                                           ^
   include/linux/compiler.h:261:17: note: in definition of macro '__READ_ONCE'
     union { typeof(x) __val; char __c[1]; } __u;   \
                    ^
   kernel/sched/sched.h:2384:23: note: in expansion of macro 'READ_ONCE'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                          ^
>> kernel/sched/sched.h:2384:40: error: 'struct cfs_rq' has no member named 'avg'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                                           ^
   include/linux/compiler.h:263:22: note: in definition of macro '__READ_ONCE'
      __read_once_size(&(x), __u.__c, sizeof(x));  \
                         ^
   kernel/sched/sched.h:2384:23: note: in expansion of macro 'READ_ONCE'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                          ^
>> kernel/sched/sched.h:2384:40: error: 'struct cfs_rq' has no member named 'avg'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                                           ^
   include/linux/compiler.h:263:42: note: in definition of macro '__READ_ONCE'
      __read_once_size(&(x), __u.__c, sizeof(x));  \
                                             ^
   kernel/sched/sched.h:2384:23: note: in expansion of macro 'READ_ONCE'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                          ^
>> kernel/sched/sched.h:2384:40: error: 'struct cfs_rq' has no member named 'avg'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                                           ^
   include/linux/compiler.h:265:30: note: in definition of macro '__READ_ONCE'
      __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
                                 ^
   kernel/sched/sched.h:2384:23: note: in expansion of macro 'READ_ONCE'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                          ^
>> kernel/sched/sched.h:2384:40: error: 'struct cfs_rq' has no member named 'avg'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                                           ^
   include/linux/compiler.h:265:50: note: in definition of macro '__READ_ONCE'
      __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
                                                     ^
   kernel/sched/sched.h:2384:23: note: in expansion of macro 'READ_ONCE'
     unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
                          ^
   In file included from arch/x86/include/asm/percpu.h:45:0,
                    from arch/x86/include/asm/current.h:6,
                    from include/linux/sched.h:12,
                    from kernel/sched/sched.h:5,
                    from kernel/sched/core.c:9:
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:835:40: note: in definition of macro '__typecheck'
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                           ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
>> kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:835:40: note: in definition of macro '__typecheck'
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                           ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
>> kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:835:40: note: in definition of macro '__typecheck'
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                           ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
>> kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:835:40: note: in definition of macro '__typecheck'
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                           ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
>> kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:835:40: note: in definition of macro '__typecheck'
      (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
                                           ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
>> kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:843:48: note: in definition of macro '__is_constexpr'
     (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
                                                   ^
   include/linux/kernel.h:849:25: note: in expansion of macro '__no_side_effects'
      (__typecheck(x, y) && __no_side_effects(x, y))
                            ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
   kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:843:48: note: in definition of macro '__is_constexpr'
     (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
                                                   ^
   include/linux/kernel.h:849:25: note: in expansion of macro '__no_side_effects'
      (__typecheck(x, y) && __no_side_effects(x, y))
                            ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
   kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:843:48: note: in definition of macro '__is_constexpr'
     (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
                                                   ^
   include/linux/kernel.h:849:25: note: in expansion of macro '__no_side_effects'
      (__typecheck(x, y) && __no_side_effects(x, y))
                            ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
   kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)
                         ^
   kernel/sched/sched.h:2388:9: note: in expansion of macro 'READ_ONCE'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
            ^
   kernel/sched/sched.h:2388:26: error: 'struct cfs_rq' has no member named 'avg'
            READ_ONCE(rq->cfs.avg.util_est.enqueued));
                             ^
   include/linux/kernel.h:843:48: note: in definition of macro '__is_constexpr'
     (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8)))
                                                   ^
   include/linux/kernel.h:849:25: note: in expansion of macro '__no_side_effects'
      (__typecheck(x, y) && __no_side_effects(x, y))
                            ^
   include/linux/kernel.h:859:24: note: in expansion of macro '__safe_cmp'
     __builtin_choose_expr(__safe_cmp(x, y), \
                           ^
   include/linux/kernel.h:935:27: note: in expansion of macro '__careful_cmp'
    #define max_t(type, x, y) __careful_cmp((type)(x), (type)(y), >)
                              ^
   kernel/sched/sched.h:2387:10: note: in expansion of macro 'max_t'
      util = max_t(unsigned long, util,
             ^
   include/linux/compiler.h:269:22: note: in expansion of macro '__READ_ONCE'
    #define READ_ONCE(x) __READ_ONCE(x, 1)

vim +2379 kernel/sched/sched.h

d4edd662ac1657 Juri Lelli      2017-12-04  2376  
8cc90515a4fa41 Vincent Guittot 2018-06-28  2377  static inline unsigned long cpu_util_dl(struct rq *rq)
8cc90515a4fa41 Vincent Guittot 2018-06-28  2378  {
8cc90515a4fa41 Vincent Guittot 2018-06-28 @2379  	return READ_ONCE(rq->avg_dl.util_avg);
8cc90515a4fa41 Vincent Guittot 2018-06-28  2380  }
8cc90515a4fa41 Vincent Guittot 2018-06-28  2381  
d4edd662ac1657 Juri Lelli      2017-12-04  2382  static inline unsigned long cpu_util_cfs(struct rq *rq)
d4edd662ac1657 Juri Lelli      2017-12-04  2383  {
a07630b8b2c16f Patrick Bellasi 2018-03-09 @2384  	unsigned long util = READ_ONCE(rq->cfs.avg.util_avg);
a07630b8b2c16f Patrick Bellasi 2018-03-09  2385  
a07630b8b2c16f Patrick Bellasi 2018-03-09  2386  	if (sched_feat(UTIL_EST)) {
a07630b8b2c16f Patrick Bellasi 2018-03-09 @2387  		util = max_t(unsigned long, util,
a07630b8b2c16f Patrick Bellasi 2018-03-09  2388  			     READ_ONCE(rq->cfs.avg.util_est.enqueued));
a07630b8b2c16f Patrick Bellasi 2018-03-09  2389  	}
a07630b8b2c16f Patrick Bellasi 2018-03-09  2390  
a07630b8b2c16f Patrick Bellasi 2018-03-09  2391  	return util;
d4edd662ac1657 Juri Lelli      2017-12-04  2392  }
371bf42732694d Vincent Guittot 2018-06-28  2393  
371bf42732694d Vincent Guittot 2018-06-28  2394  static inline unsigned long cpu_util_rt(struct rq *rq)
371bf42732694d Vincent Guittot 2018-06-28  2395  {
dfa444dc2ff62e Vincent Guittot 2018-06-28 @2396  	return READ_ONCE(rq->avg_rt.util_avg);
371bf42732694d Vincent Guittot 2018-06-28  2397  }
938e5e4b0d1502 Quentin Perret  2018-12-03  2398  #else /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */
af24bde8df2029 Patrick Bellasi 2019-06-21  2399  static inline unsigned long schedutil_cpu_util(int cpu, unsigned long util_cfs,
af24bde8df2029 Patrick Bellasi 2019-06-21  2400  				 unsigned long max, enum schedutil_type type,
af24bde8df2029 Patrick Bellasi 2019-06-21  2401  				 struct task_struct *p)
938e5e4b0d1502 Quentin Perret  2018-12-03  2402  {
af24bde8df2029 Patrick Bellasi 2019-06-21  2403  	return 0;
938e5e4b0d1502 Quentin Perret  2018-12-03  2404  }
af24bde8df2029 Patrick Bellasi 2019-06-21  2405  #endif /* CONFIG_CPU_FREQ_GOV_SCHEDUTIL */
9033ea11889f88 Vincent Guittot 2018-06-28  2406  

:::::: The code at line 2379 was first introduced by commit
:::::: 8cc90515a4fa419ccfc4703ff127699cdcb96839 cpufreq/schedutil: Use DL utilization tracking

:::::: TO: Vincent Guittot <vincent.guittot@xxxxxxxxxx>
:::::: CC: Ingo Molnar <mingo@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux