From: kernel test robot <lkp@intel.com>
To: Qais Yousef <qais.yousef@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
"Qais Yousef (Google)" <qyousef@layalina.io>
Subject: [linux-stable-rc:linux-5.10.y 9981/9999] kernel/sched/sched.h:2560:22: error: no member named 'cpu_capacity_inverted' in 'struct rq'
Date: Thu, 16 Mar 2023 01:29:45 +0800 [thread overview]
Message-ID: <202303160148.SwuV7dSc-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 420b6d10bae34ef9aa0d118b31afec6107595e72
commit: ad3483567b602cacd53a6409ba669d09cf77af0a [9981/9999] sched/fair: Detect capacity inversion
config: mips-randconfig-r023-20230312 (https://download.01.org/0day-ci/archive/20230316/202303160148.SwuV7dSc-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7)
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 mips cross compiling tool for clang build
# apt-get install binutils-mipsel-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=ad3483567b602cacd53a6409ba669d09cf77af0a
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout ad3483567b602cacd53a6409ba669d09cf77af0a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303160148.SwuV7dSc-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/clock.c:56:
>> kernel/sched/sched.h:2560:22: error: no member named 'cpu_capacity_inverted' in 'struct rq'
return cpu_rq(cpu)->cpu_capacity_inverted;
~~~~~~~~~~~ ^
1 error generated.
--
In file included from kernel/sched/core.c:13:
>> kernel/sched/sched.h:2560:22: error: no member named 'cpu_capacity_inverted' in 'struct rq'
return cpu_rq(cpu)->cpu_capacity_inverted;
~~~~~~~~~~~ ^
kernel/sched/core.c:2430:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
struct rq *rq;
^
1 warning and 1 error generated.
vim +2560 kernel/sched/sched.h
2544
2545 /*
2546 * Returns inverted capacity if the CPU is in capacity inversion state.
2547 * 0 otherwise.
2548 *
2549 * Capacity inversion detection only considers thermal impact where actual
2550 * performance points (OPPs) gets dropped.
2551 *
2552 * Capacity inversion state happens when another performance domain that has
2553 * equal or lower capacity_orig_of() becomes effectively larger than the perf
2554 * domain this CPU belongs to due to thermal pressure throttling it hard.
2555 *
2556 * See comment in update_cpu_capacity().
2557 */
2558 static inline unsigned long cpu_in_capacity_inversion(int cpu)
2559 {
> 2560 return cpu_rq(cpu)->cpu_capacity_inverted;
2561 }
2562
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-03-15 17:30 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=202303160148.SwuV7dSc-lkp@intel.com \
--to=lkp@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
--cc=qais.yousef@arm.com \
--cc=qyousef@layalina.io \
/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.