linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: kbuild-all@lists.01.org, linux-acpi@vger.kernel.org,
	devel@acpica.org, linux-pm@vger.kernel.org
Subject: [pm:intel_pstate-passive 4/5] kernel/sched/sched.h:2379:21: error: 'struct rq' has no member named 'avg_dl'
Date: Thu, 26 Mar 2020 11:31:45 +0800	[thread overview]
Message-ID: <202003261139.NlRlqEOD%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 19147 bytes --]

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@intel.com>

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@linaro.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 31703 bytes --]

                 reply	other threads:[~2020-03-26  3:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202003261139.NlRlqEOD%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@acpica.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).