* [intel-lts:6.12/linux 1/1] drivers/gpu/drm/virtio/virtgpu_object.c:313 virtio_gpu_object_restore_all() error: uninitialized symbol 'ret'.
@ 2024-12-26 7:14 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-26 7:14 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Dongwon Kim <dongwon.kim@intel.com>
CC: Junxiao Chang <junxiao.chang@intel.com>
tree: https://github.com/intel/linux-intel-lts.git 6.12/linux
head: af28adffb0fe876a7f6b55f145e6cae4861209a9
commit: 07735a37132102968679d247d7a774cf00ad85d4 [1/1] drm/virtio: save and restore virtio_gpu_objects
:::::: branch date: 6 days ago
:::::: commit date: 2 weeks ago
config: i386-randconfig-141-20241226 (https://download.01.org/0day-ci/archive/20241226/202412261554.1TMUmRI5-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202412261554.1TMUmRI5-lkp@intel.com/
smatch warnings:
drivers/gpu/drm/virtio/virtgpu_object.c:313 virtio_gpu_object_restore_all() error: uninitialized symbol 'ret'.
vim +/ret +313 drivers/gpu/drm/virtio/virtgpu_object.c
07735a37132102 Dongwon Kim 2022-08-18 286
07735a37132102 Dongwon Kim 2022-08-18 287 int virtio_gpu_object_restore_all(struct virtio_gpu_device *vgdev)
07735a37132102 Dongwon Kim 2022-08-18 288 {
07735a37132102 Dongwon Kim 2022-08-18 289 struct virtio_gpu_object_restore *curr, *tmp;
07735a37132102 Dongwon Kim 2022-08-18 290 struct virtio_gpu_mem_entry *ents;
07735a37132102 Dongwon Kim 2022-08-18 291 unsigned int nents;
07735a37132102 Dongwon Kim 2022-08-18 292 int ret;
07735a37132102 Dongwon Kim 2022-08-18 293
07735a37132102 Dongwon Kim 2022-08-18 294 list_for_each_entry_safe(curr, tmp, &vgdev->obj_rec, node) {
07735a37132102 Dongwon Kim 2022-08-18 295 ret = virtio_gpu_object_shmem_init(vgdev, curr->bo, &ents, &nents);
07735a37132102 Dongwon Kim 2022-08-18 296 if (ret)
07735a37132102 Dongwon Kim 2022-08-18 297 break;
07735a37132102 Dongwon Kim 2022-08-18 298
07735a37132102 Dongwon Kim 2022-08-18 299 if (curr->params.blob) {
07735a37132102 Dongwon Kim 2022-08-18 300 virtio_gpu_cmd_resource_create_blob(vgdev, curr->bo, &curr->params,
07735a37132102 Dongwon Kim 2022-08-18 301 ents, nents);
07735a37132102 Dongwon Kim 2022-08-18 302 } else if (curr->params.virgl) {
07735a37132102 Dongwon Kim 2022-08-18 303 virtio_gpu_cmd_resource_create_3d(vgdev, curr->bo, &curr->params,
07735a37132102 Dongwon Kim 2022-08-18 304 NULL, NULL);
07735a37132102 Dongwon Kim 2022-08-18 305 virtio_gpu_object_attach(vgdev, curr->bo, ents, nents);
07735a37132102 Dongwon Kim 2022-08-18 306 } else {
07735a37132102 Dongwon Kim 2022-08-18 307 virtio_gpu_cmd_create_resource(vgdev, curr->bo, &curr->params,
07735a37132102 Dongwon Kim 2022-08-18 308 NULL, NULL);
07735a37132102 Dongwon Kim 2022-08-18 309 virtio_gpu_object_attach(vgdev, curr->bo, ents, nents);
07735a37132102 Dongwon Kim 2022-08-18 310 }
07735a37132102 Dongwon Kim 2022-08-18 311 }
07735a37132102 Dongwon Kim 2022-08-18 312
07735a37132102 Dongwon Kim 2022-08-18 @313 return ret;
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-12-26 7:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 7:14 [intel-lts:6.12/linux 1/1] drivers/gpu/drm/virtio/virtgpu_object.c:313 virtio_gpu_object_restore_all() error: uninitialized symbol 'ret' kernel test robot
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.