[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202507111843.OV6uA3Jr-lkp@intel.com>
Date: Fri, 11 Jul 2025 19:02:47 +0800
From: kernel test robot <lkp@...el.com>
To: admiyo@...amperecomputing.com, Jeremy Kerr <jk@...econstruct.com.au>,
Matt Johnston <matt@...econstruct.com.au>,
Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Sudeep Holla <sudeep.holla@....com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Huisong Li <lihuisong@...wei.com>
Subject: Re: [PATCH net-next v22 2/2] mctp pcc: Implement MCTP over PCC
Transport
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/admiyo-os-amperecomputing-com/mailbox-pcc-support-mailbox-management-of-the-shared-buffer/20250711-031525
base: net-next/main
patch link: https://lore.kernel.org/r/20250710191209.737167-3-admiyo%40os.amperecomputing.com
patch subject: [PATCH net-next v22 2/2] mctp pcc: Implement MCTP over PCC Transport
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20250711/202507111843.OV6uA3Jr-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250711/202507111843.OV6uA3Jr-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507111843.OV6uA3Jr-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/net/mctp/mctp-pcc.c:71:8: warning: variable 'skb_buf' set but not used [-Wunused-but-set-variable]
71 | void *skb_buf;
| ^
1 warning generated.
vim +/skb_buf +71 drivers/net/mctp/mctp-pcc.c
65
66 static void *mctp_pcc_rx_alloc(struct mbox_client *c, int size)
67 {
68 struct mctp_pcc_mailbox *box;
69 struct mctp_pcc_ndev *mctp_pcc_ndev;
70 struct sk_buff *skb;
> 71 void *skb_buf;
72
73 box = container_of(c, struct mctp_pcc_mailbox, client);
74 mctp_pcc_ndev = container_of(c, struct mctp_pcc_ndev, inbox.client);
75 if (size > mctp_pcc_ndev->mdev.dev->mtu)
76 return NULL;
77 mctp_pcc_ndev = container_of(c, struct mctp_pcc_ndev, inbox.client);
78 skb = netdev_alloc_skb(mctp_pcc_ndev->mdev.dev, size);
79 if (!skb)
80 return NULL;
81 skb_buf = skb_put(skb, size);
82 skb->protocol = htons(ETH_P_MCTP);
83
84 skb_queue_head(&box->packets, skb);
85
86 return skb->data;
87 }
88
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists