From: kernel test robot <lkp@intel.com>
To: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [cornelisnetworks:for-upstream_20260408-1007 30/32] drivers/infiniband/hw/hfi2/affinity.c:124:30: error: invalid initializer
Date: Sun, 12 Apr 2026 13:34:50 +0800 [thread overview]
Message-ID: <202604121326.zitO2BGc-lkp@intel.com> (raw)
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
reply other threads:[~2026-04-12 5:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604121326.zitO2BGc-lkp@intel.com \
--to=lkp@intel.com \
--cc=dennis.dalessandro@cornelisnetworks.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.