Re: [PATCH V1 3/3] drivers/fpga/amd: Add remote queue service APIs
From: kernel test robot
Date: Wed Oct 09 2024 - 03:15:43 EST
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v6.12-rc2 next-20241008]
[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/David-Zhang/drivers-fpga-amd-Add-communication-with-firmware/20241008-060253
base: linus/master
patch link: https://lore.kernel.org/r/20241007220128.3023169-3-yidong.zhang%40amd.com
patch subject: [PATCH V1 3/3] drivers/fpga/amd: Add remote queue service APIs
config: i386-randconfig-054-20241009 (https://download.01.org/0day-ci/archive/20241009/202410091512.rcCqJO6z-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
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/202410091512.rcCqJO6z-lkp@xxxxxxxxx/
cocci warnings: (new ones prefixed by >>)
>> drivers/fpga/amd/vmgmt-rm-queue.c:280:2-3: Unneeded semicolon
vim +280 drivers/fpga/amd/vmgmt-rm-queue.c
254
255 static void rm_check_msg(struct work_struct *w)
256 {
257 struct rm_device *rdev = to_rdev_msg_monitor(w);
258 int ret;
259
260 mutex_lock(&rdev->queue);
261
262 ret = rm_queue_get_cidx(rdev, RM_QUEUE_SQ, &rdev->sq.cidx);
263 if (ret)
264 goto error;
265
266 ret = rm_queue_get_pidx(rdev, RM_QUEUE_CQ, &rdev->cq.pidx);
267 if (ret)
268 goto error;
269
270 while (rdev->cq.cidx < rdev->cq.pidx) {
271 ret = rm_process_msg(rdev);
272 if (ret)
273 break;
274
275 rdev->cq.cidx++;
276
277 ret = rm_queue_set_cidx(rdev, RM_QUEUE_CQ, rdev->cq.cidx);
278 if (ret)
279 break;
> 280 };
281
282 error:
283 mutex_unlock(&rdev->queue);
284 }
285
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki