oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [linux-stable-rc:queue/5.10 96/108] kernel/sched/sched.h:2560:27: error: 'struct rq' has no member named 'cpu_capacity_inverted'
@ 2023-03-15 11:01 kernel test robot
  2023-03-15 12:44 ` Qais Yousef
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-03-15 11:01 UTC (permalink / raw)
  To: Qais Yousef
  Cc: oe-kbuild-all, Sasha Levin, Peter Zijlstra (Intel),
	Qais Yousef (Google),
	Greg Kroah-Hartman

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.10
head:   e6a15a9d1bcf661f6bb79a1c2dce0c796234ac80
commit: db4f76185823d00afb688cbd63fdf7200de209ea [96/108] sched/fair: Detect capacity inversion
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20230315/202303151800.NP9tJsgK-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=db4f76185823d00afb688cbd63fdf7200de209ea
        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 queue/5.10
        git checkout db4f76185823d00afb688cbd63fdf7200de209ea
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash kernel/

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/202303151800.NP9tJsgK-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/core.c:13:
   kernel/sched/sched.h: In function 'cpu_in_capacity_inversion':
>> kernel/sched/sched.h:2560:27: error: 'struct rq' has no member named 'cpu_capacity_inverted'
    2560 |         return cpu_rq(cpu)->cpu_capacity_inverted;
         |                           ^~
   kernel/sched/core.c: In function 'ttwu_stat':
   kernel/sched/core.c:2430:20: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
    2430 |         struct rq *rq;
         |                    ^~
--
   In file included from kernel/sched/loadavg.c:9:
   kernel/sched/sched.h: In function 'cpu_in_capacity_inversion':
>> kernel/sched/sched.h:2560:27: error: 'struct rq' has no member named 'cpu_capacity_inverted'
    2560 |         return cpu_rq(cpu)->cpu_capacity_inverted;
         |                           ^~


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] 3+ messages in thread

end of thread, other threads:[~2023-03-16  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 11:01 [linux-stable-rc:queue/5.10 96/108] kernel/sched/sched.h:2560:27: error: 'struct rq' has no member named 'cpu_capacity_inverted' kernel test robot
2023-03-15 12:44 ` Qais Yousef
2023-03-16  7:42   ` Greg Kroah-Hartman

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