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: drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c:36 r535_nvdec_alloc() warn: 'args' can also be NULL
Date: Tue, 02 Jun 2026 07:06:44 +0800	[thread overview]
Message-ID: <202606020601.chCDJclp-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Ben Skeggs <bskeggs@nvidia.com>
CC: Dave Airlie <airlied@redhat.com>
CC: Timur Tabi <ttabi@nvidia.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e43ffb69e0438cddd72aaa30898b4dc446f664f8
commit: 7c2d25f1e408bb7d18b867718f9961de3c2f23da drm/nouveau/gsp: add common code for engines/engine objects
date:   1 year ago
:::::: branch date: 25 hours ago
:::::: commit date: 1 year ago
config: openrisc-randconfig-r073-20260601 (https://download.01.org/0day-ci/archive/20260602/202606020601.chCDJclp-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 15.2.0
smatch: v0.5.0-9185-gbcc58b9c

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
| Fixes: 7c2d25f1e408 ("drm/nouveau/gsp: add common code for engines/engine objects")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202606020601.chCDJclp-lkp@intel.com/

smatch warnings:
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c:36 r535_nvdec_alloc() warn: 'args' can also be NULL
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvjpg.c:36 r535_nvjpg_alloc() warn: 'args' can also be NULL

vim +/args +36 drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c

142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  25  
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  26  static int
7c2d25f1e408bb drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c Ben Skeggs 2025-02-15  27  r535_nvdec_alloc(struct nvkm_gsp_object *chan, u32 handle, u32 class, int inst,
7c2d25f1e408bb drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c Ben Skeggs 2025-02-15  28  		 struct nvkm_gsp_object *nvdec)
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  29  {
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  30  	NV_BSP_ALLOCATION_PARAMETERS *args;
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  31  
7c2d25f1e408bb drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c Ben Skeggs 2025-02-15  32  	args = nvkm_gsp_rm_alloc_get(chan, handle, class, sizeof(*args), nvdec);
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  33  	if (WARN_ON(IS_ERR(args)))
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  34  		return PTR_ERR(args);
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  35  
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19 @36  	args->size = sizeof(*args);
7c2d25f1e408bb drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c Ben Skeggs 2025-02-15  37  	args->engineInstance = inst;
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  38  
7c2d25f1e408bb drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c Ben Skeggs 2025-02-15  39  	return nvkm_gsp_rm_alloc_wr(nvdec, args);
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  40  }
142cd60243cac1 drivers/gpu/drm/nouveau/nvkm/engine/nvdec/r535.c        Ben Skeggs 2023-09-19  41  

:::::: The code at line 36 was first introduced by commit
:::::: 142cd60243cac1dfa18d3714ed4dd0cdc3786180 drm/nouveau/nvdec/r535: initial support

:::::: TO: Ben Skeggs <bskeggs@redhat.com>
:::::: CC: Dave Airlie <airlied@redhat.com>

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

             reply	other threads:[~2026-06-01 23:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01 23:06 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-12-13  5:14 drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvdec.c:36 r535_nvdec_alloc() warn: 'args' can also be NULL kernel test robot
2025-12-12 15:04 kernel test robot

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=202606020601.chCDJclp-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.