All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:x86/topology 41/57] arch/x86/kernel/cpu/topology_common.c:160:9: error: 'smp_num_siblings' undeclared
@ 2023-07-14  3:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-14  3:37 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/topology
head:   39d1f9d6ad3d4b9bf9c298db5685f22d8fe6e2c0
commit: cddc2e9c0152480ee1041b2806b1301b0157d109 [41/57] x86/cpu: Provide cpu_init/parse_topology()
config: i386-buildonly-randconfig-r004-20230714 (https://download.01.org/0day-ci/archive/20230714/202307141142.bJnAU433-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230714/202307141142.bJnAU433-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/202307141142.bJnAU433-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/kernel/cpu/topology_common.c: In function 'cpu_init_topology':
>> arch/x86/kernel/cpu/topology_common.c:160:9: error: 'smp_num_siblings' undeclared (first use in this function)
     160 |         smp_num_siblings = x86_topo_system.dom_size[TOPO_SMT_DOMAIN];
         |         ^~~~~~~~~~~~~~~~
   arch/x86/kernel/cpu/topology_common.c:160:9: note: each undeclared identifier is reported only once for each function it appears in


vim +/smp_num_siblings +160 arch/x86/kernel/cpu/topology_common.c

   130	
   131	void __init cpu_init_topology(struct cpuinfo_x86 *c)
   132	{
   133		struct topo_scan tscan = { .c = c, };
   134		unsigned int dom, sft;
   135	
   136		parse_topology(&tscan, true);
   137	
   138		if (!topo_is_converted(c))
   139			return;
   140	
   141		/* Copy the shift values and calculate the unit sizes. */
   142		memcpy(x86_topo_system.dom_shifts, tscan.dom_shifts, sizeof(x86_topo_system.dom_shifts));
   143	
   144		dom = TOPO_SMT_DOMAIN;
   145		x86_topo_system.dom_size[dom] = 1U << x86_topo_system.dom_shifts[dom];
   146	
   147		for (dom++; dom < TOPO_MAX_DOMAIN; dom++) {
   148			sft = x86_topo_system.dom_shifts[dom] - x86_topo_system.dom_shifts[dom - 1];
   149			x86_topo_system.dom_size[dom] = 1U << sft;
   150		}
   151	
   152		topo_set_ids(&tscan);
   153		topo_set_max_cores(&tscan);
   154	
   155		/*
   156		 * This is deliberately using the domain size and not the real one,
   157		 * as this might be a hybrid system. If the boot CPU does not have
   158		 * SMT this would end up with one sibling.
   159		 */
 > 160		smp_num_siblings = x86_topo_system.dom_size[TOPO_SMT_DOMAIN];

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2023-07-14  3:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-14  3:37 [tglx-devel:x86/topology 41/57] arch/x86/kernel/cpu/topology_common.c:160:9: error: 'smp_num_siblings' undeclared kernel test robot

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.