From: kernel test robot <lkp@intel.com>
To: Alex Shi <alexs@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [alexshi:schedtest 12/12] kernel/sched/fair.c:9748:34: error: call to undeclared function 'cpu_core_flags'; ISO C99 and later do not support implicit function declarations
Date: Wed, 31 Jan 2024 13:54:00 +0800 [thread overview]
Message-ID: <202401311339.WH2KXCdH-lkp@intel.com> (raw)
tree: https://github.com/alexshi/linux.git schedtest
head: b92ab0e6c7d969d7c8b42f8a5ff7e1e73f63599b
commit: b92ab0e6c7d969d7c8b42f8a5ff7e1e73f63599b [12/12] sched/fair: change sched asym checking condition
config: x86_64-buildonly-randconfig-001-20240131 (https://download.01.org/0day-ci/archive/20240131/202401311339.WH2KXCdH-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240131/202401311339.WH2KXCdH-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401311339.WH2KXCdH-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/fair.c:9748:34: error: call to undeclared function 'cpu_core_flags'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
9748 | (is_core_idle(cpu) && test_bit(cpu_core_flags(), (void*)&sd->flags));
| ^
1 error generated.
vim +/cpu_core_flags +9748 kernel/sched/fair.c
9730
9731 /**
9732 * sched_use_asym_prio - Check whether asym_packing priority must be used
9733 * @sd: The scheduling domain of the load balancing
9734 * @cpu: A CPU
9735 *
9736 * Always use CPU priority when balancing load between SMT siblings. When
9737 * balancing load between cores, it is not sufficient that @cpu is idle. Only
9738 * use CPU priority if the whole core is idle.
9739 *
9740 * Returns: True if the priority of @cpu must be followed. False otherwise.
9741 */
9742 static bool sched_use_asym_prio(struct sched_domain *sd, int cpu)
9743 {
9744 if (!(sd->flags & SD_ASYM_PACKING))
9745 return false;
9746
9747 return (sd->flags & SD_SHARE_CPUCAPACITY) ||
> 9748 (is_core_idle(cpu) && test_bit(cpu_core_flags(), (void*)&sd->flags));
9749 }
9750
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-01-31 5:56 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=202401311339.WH2KXCdH-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexs@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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