linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-nonmm-unstable 22/23] lib/group_cpus.c:352:16: error: array initializer must be an initializer list
@ 2024-01-13 17:40 kernel test robot
  2024-01-16 22:55 ` Nathan Chancellor
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-01-13 17:40 UTC (permalink / raw)
  To: Yury Norov
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
head:   3d69c575710800c9a4a58e94c157697310e32027
commit: a868f9c8816cb72f983d1ff940b0938737fe8ee7 [22/23] lib/group_cpus: fix initialization section in group_cpus_evenly()
config: i386-randconfig-011-20240113 (https://download.01.org/0day-ci/archive/20240114/202401140117.pwAcsXAT-lkp@intel.com/config)
compiler: ClangBuiltLinux 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/20240114/202401140117.pwAcsXAT-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/202401140117.pwAcsXAT-lkp@intel.com/

All errors (new ones prefixed by >>):

>> lib/group_cpus.c:352:16: error: array initializer must be an initializer list
     352 |         cpumask_var_t npresmsk __free(free_cpumask_var) = NULL;
         |                       ^
   1 error generated.


vim +352 lib/group_cpus.c

   332	
   333	/**
   334	 * group_cpus_evenly - Group all CPUs evenly per NUMA/CPU locality
   335	 * @numgrps: number of groups
   336	 *
   337	 * Return: cpumask array if successful, NULL otherwise. And each element
   338	 * includes CPUs assigned to this group
   339	 *
   340	 * Try to put close CPUs from viewpoint of CPU and NUMA locality into
   341	 * same group, and run two-stage grouping:
   342	 *	1) allocate present CPUs on these groups evenly first
   343	 *	2) allocate other possible CPUs on these groups evenly
   344	 *
   345	 * We guarantee in the resulted grouping that all CPUs are covered, and
   346	 * no same CPU is assigned to multiple groups
   347	 */
   348	struct cpumask *group_cpus_evenly(unsigned int numgrps)
   349	{
   350		cpumask_var_t *node_to_cpumask __free(free_node_to_cpumask) = alloc_node_to_cpumask();
   351		struct cpumask *masks __free(kfree) = kcalloc(numgrps, sizeof(*masks), GFP_KERNEL);
 > 352		cpumask_var_t npresmsk __free(free_cpumask_var) = NULL;

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-16 22:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-13 17:40 [akpm-mm:mm-nonmm-unstable 22/23] lib/group_cpus.c:352:16: error: array initializer must be an initializer list kernel test robot
2024-01-16 22:55 ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox