All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-de:tip/sched/core_dl_fix_dl_cap_aw 4/5] kernel/sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared; did you mean 'arch_scale_cpu_capacity'?
Date: Mon, 10 Feb 2020 07:16:51 +0800	[thread overview]
Message-ID: <202002100743.i6aB44yE%lkp@intel.com> (raw)

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

tree:   git://linux-arm.org/linux-de.git tip/sched/core_dl_fix_dl_cap_aw
head:   5f50571676da5c98ea40e9eb008e85be2e2d177d
commit: f23df27535d751f761ec7593b8d6311f8385b990 [4/5] sched/deadline: Make DL capacity-aware
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
        git checkout f23df27535d751f761ec7593b8d6311f8385b990
        # save the attached .config to linux build tree
        make ARCH=i386 

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/deadline.c:18:
   kernel/sched/deadline.c: In function 'dl_task_fits_capacity':
>> kernel/sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared (first use in this function); did you mean 'arch_scale_cpu_capacity'?
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
                                  ^
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
    #define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
                                               ^~~~~~~~~~~~~~~~~~
>> kernel/sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
          ^~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/deadline.c:660:31: note: each undeclared identifier is reported only once for each function it appears in
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
                                  ^
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
    #define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
                                               ^~~~~~~~~~~~~~~~~~
>> kernel/sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
          ^~~~~~~~~~~~~~~~~~~~~~
--
   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/deadline.c:18:
   kernel//sched/deadline.c: In function 'dl_task_fits_capacity':
   kernel//sched/deadline.c:660:31: error: 'sched_asym_cpucapacity' undeclared (first use in this function); did you mean 'arch_scale_cpu_capacity'?
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
                                  ^
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
    #define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
                                               ^~~~~~~~~~~~~~~~~~
   kernel//sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
          ^~~~~~~~~~~~~~~~~~~~~~
   kernel//sched/deadline.c:660:31: note: each undeclared identifier is reported only once for each function it appears in
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
                                  ^
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> include/linux/jump_label.h:481:44: note: in expansion of macro 'static_key_enabled'
    #define static_branch_unlikely(x) unlikely(static_key_enabled(&(x)->key))
                                               ^~~~~~~~~~~~~~~~~~
   kernel//sched/deadline.c:660:7: note: in expansion of macro 'static_branch_unlikely'
     if (!static_branch_unlikely(&sched_asym_cpucapacity))
          ^~~~~~~~~~~~~~~~~~~~~~

vim +660 kernel/sched/deadline.c

   642	
   643	/*
   644	 * Verify the fitness of task @p to run on @cpu taking into account the
   645	 * CPU original capacity and the runtime/deadline ratio of the task.
   646	 *
   647	 * This check is only important for heterogeneous systems where CPU
   648	 * original capacity can be less than SCHED_CAPACITY_SCALE. For
   649	 * non-heterogeneous system this function will always return true.
   650	 *
   651	 * The function will return true if the CPU original capacity of the
   652	 * @cpu scaled by SCHED_CAPACITY_SCALE >= runtime/deadline ratio of the
   653	 * task and false otherwise.
   654	 */
   655	static inline bool dl_task_fits_capacity(struct task_struct *p, int cpu)
   656	{
   657		u64 deadline, runtime;
   658		unsigned long cap;
   659	
 > 660		if (!static_branch_unlikely(&sched_asym_cpucapacity))
   661			return true;
   662	
   663		cap = arch_scale_cpu_capacity(cpu);
   664		deadline = p->dl.dl_deadline;
   665		runtime = p->dl.dl_runtime;
   666	
   667		return	cap_scale(deadline, cap) >= runtime;
   668	}
   669	

---
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: 7283 bytes --]

                 reply	other threads:[~2020-02-09 23:16 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=202002100743.i6aB44yE%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.