All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [intel-lts:6.12/linux 1/1] drivers/gpu/drm/virtio/virtgpu_object.c:313 virtio_gpu_object_restore_all() error: uninitialized symbol 'ret'.
Date: Thu, 26 Dec 2024 15:14:48 +0800	[thread overview]
Message-ID: <202412261554.1TMUmRI5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-12-26  7:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202412261554.1TMUmRI5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.