Re: [PATCH v3 14/14] greybus: cpc: add CPC SDIO host driver

From: kernel test robot

Date: Thu Feb 12 2026 - 19:32:55 EST


Hi Damien,

kernel test robot noticed the following build warnings:

[auto build test WARNING on linus/master]
[also build test WARNING on v6.19 next-20260212]
[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-minimal-CPC-Host-Device-infrastructure/20260212-232259
base: linus/master
patch link: https://lore.kernel.org/r/20260212144352.93043-15-damien.riegel%40silabs.com
patch subject: [PATCH v3 14/14] greybus: cpc: add CPC SDIO host driver
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260213/202602130822.5syxoFy2-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260213/202602130822.5syxoFy2-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602130822.5syxoFy2-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/greybus/cpc/sdio.c: In function 'gb_cpc_sdio_tx':
>> drivers/greybus/cpc/sdio.c:286:13: warning: variable 'err' set but not used [-Wunused-but-set-variable]
286 | int err;
| ^~~


vim +/err +286 drivers/greybus/cpc/sdio.c

279
280 static int gb_cpc_sdio_tx(struct cpc_sdio *ctx)
281 {
282 struct sk_buff_head frame_list;
283 unsigned char *tx_buff;
284 size_t tx_len;
285 int pkt_sent;
> 286 int err;
287
288 skb_queue_head_init(&frame_list);
289
290 cpc_hd_dequeue_many(ctx->cpc_hd, &frame_list, ctx->max_aggregation);
291
292 if (skb_queue_empty(&frame_list))
293 return 0;
294
295 tx_len = cpc_sdio_build_aggregated_frame(ctx, &frame_list, &tx_buff);
296 if (!tx_len) {
297 dev_err(ctx->dev, "failed to build aggregated frame\n");
298 goto cleanup_frames;
299 }
300
301 sdio_claim_host(ctx->func);
302 err = sdio_writesb(ctx->func, GB_CPC_SDIO_ADDR_FIFO, tx_buff, tx_len);
303 sdio_release_host(ctx->func);
304
305 kfree(tx_buff);
306
307 cleanup_frames:
308 pkt_sent = skb_queue_len(&frame_list);
309 skb_queue_purge(&frame_list);
310
311 return pkt_sent;
312 }
313

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