All of lore.kernel.org
 help / color / mirror / Atom feed
* [cornelisnetworks:for-upstream_20260408-1007 30/32] drivers/infiniband/hw/hfi2/affinity.c:124:30: error: invalid initializer
@ 2026-04-12  5:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-12  5:34 UTC (permalink / raw)
  To: Dennis Dalessandro; +Cc: oe-kbuild-all

Hi Dennis,

First bad commit (maybe != root cause):

tree:   https://github.com/cornelisnetworks/linux.git for-upstream_20260408-1007
head:   0f17c9b31e14b6d196855b053280814296362bd6
commit: 75332d9a3e693af3730e158858eb2de486e7247a [30/32] RDMA/hfi2: Make it build
config: x86_64-randconfig-r112-20260407 (https://download.01.org/0day-ci/archive/20260412/202604121326.zitO2BGc-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260412/202604121326.zitO2BGc-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/202604121326.zitO2BGc-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/infiniband/hw/hfi2/affinity.c: In function 'init_real_cpu_mask':
>> drivers/infiniband/hw/hfi2/affinity.c:124:30: error: invalid initializer
     124 |         cpumask_var_t cpus = &node_affinity.real_cpu_mask;
         |                              ^
   drivers/infiniband/hw/hfi2/affinity.c: In function 'node_affinity_allocate':
   drivers/infiniband/hw/hfi2/affinity.c:211:15: error: assignment to 'struct hfi2_affinity_node *' from incompatible pointer type 'struct hfi2_affinity_node **' [-Wincompatible-pointer-types]
     211 |         entry = kzalloc_obj(entry, GFP_KERNEL);
         |               ^


vim +124 drivers/infiniband/hw/hfi2/affinity.c

bedc154be9f44e Dennis Dalessandro 2026-02-25  120  
bedc154be9f44e Dennis Dalessandro 2026-02-25  121  /* Initialize non-HT cpu cores mask */
bedc154be9f44e Dennis Dalessandro 2026-02-25  122  void init_real_cpu_mask(void)
bedc154be9f44e Dennis Dalessandro 2026-02-25  123  {
bedc154be9f44e Dennis Dalessandro 2026-02-25 @124  	cpumask_var_t cpus = &node_affinity.real_cpu_mask;
bedc154be9f44e Dennis Dalessandro 2026-02-25  125  
bedc154be9f44e Dennis Dalessandro 2026-02-25  126  	cpumask_clear(cpus);
bedc154be9f44e Dennis Dalessandro 2026-02-25  127  	/* Start with cpu online mask as the real cpu mask */
bedc154be9f44e Dennis Dalessandro 2026-02-25  128  	cpumask_copy(cpus, cpu_online_mask);
bedc154be9f44e Dennis Dalessandro 2026-02-25  129  	clear_ht_siblings(cpus);
bedc154be9f44e Dennis Dalessandro 2026-02-25  130  }
bedc154be9f44e Dennis Dalessandro 2026-02-25  131  

:::::: The code at line 124 was first introduced by commit
:::::: bedc154be9f44e98cd45e91d621b09487a3057dc RDMA/hfi2: Add initialization and firmware support

:::::: TO: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
:::::: CC: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>

-- 
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:[~2026-04-12  5:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-12  5:34 [cornelisnetworks:for-upstream_20260408-1007 30/32] drivers/infiniband/hw/hfi2/affinity.c:124:30: error: invalid initializer 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.