oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [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'
@ 2023-03-15 17:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-15 17:29 UTC (permalink / raw)
  To: Qais Yousef
  Cc: llvm, oe-kbuild-all, Greg Kroah-Hartman, Peter Zijlstra (Intel),
	Qais Yousef (Google)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-15 17:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 17:29 [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' kernel test robot

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).