Hi Damien,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master] [also build test WARNING on v6.18 next-20251212] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Damien-Ri-gel/greybus-cpc-add... base: linus/master patch link: https://lore.kernel.org/r/20251212161308.25678-10-damien.riegel%40silabs.com patch subject: [PATCH 09/14] greybus: cpc: acknowledge all incoming messages config: alpha-randconfig-r112-20251213 (https://download.01.org/0day-ci/archive/20251213/202512132212.2zg1V6JU-lkp@i...) compiler: alpha-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512132212.2zg1V6JU-lkp@i...)
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/202512132212.2zg1V6JU-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/greybus/cpc/protocol.c:46:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] size @@ got unsigned long @@
drivers/greybus/cpc/protocol.c:46:22: sparse: expected restricted __le16 [usertype] size drivers/greybus/cpc/protocol.c:46:22: sparse: got unsigned long
vim +46 drivers/greybus/cpc/protocol.c
30 31 static void cpc_protocol_queue_ack(struct cpc_cport *cport, u8 ack) 32 { 33 struct gb_operation_msg_hdr *gb_hdr; 34 struct sk_buff *skb; 35 36 skb = alloc_skb(CPC_HEADER_SIZE + sizeof(*gb_hdr), GFP_KERNEL); 37 if (!skb) 38 return; 39 40 skb_reserve(skb, CPC_HEADER_SIZE); 41 42 gb_hdr = skb_put(skb, sizeof(*gb_hdr)); 43 memset(gb_hdr, 0, sizeof(*gb_hdr)); 44 45 /* In the CPC Operation Header, only the size and cport_id matter for ACKs. */
46 gb_hdr->size = sizeof(*gb_hdr);
47 cpc_cport_pack(gb_hdr, cport->id); 48 49 cpc_protocol_prepare_header(skb, ack); 50 51 cpc_hd_send_skb(cport->cpc_hd, skb); 52 } 53