All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [PATCH] drm/amd/display/dc/calcs/dce_calcs: fix noderef.cocci warnings
Date: Sun, 21 Mar 2021 04:39:02 +0800	[thread overview]
Message-ID: <20210320203902.GA16190@d2f0d42e889c> (raw)
In-Reply-To: <20210319082428.3294591-8-lee.jones@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 1356 bytes --]

From: kernel test robot <lkp@intel.com>

drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:2054:17-23: ERROR: application of sizeof to pointer
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:2058:17-23: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

CC: Lee Jones <lee.jones@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
---

url:    https://github.com/0day-ci/linux/commits/Lee-Jones/Rid-GPU-from-W-1-warnings/20210319-162705
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8b12a62a4e3ed4ae99c715034f557eb391d6b196

 dce_calcs.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c
+++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c
@@ -2051,11 +2051,11 @@ void bw_calcs_init(struct bw_calcs_dceip
 
 	enum bw_calcs_version version = bw_calcs_version_from_asic_id(asic_id);
 
-	dceip = kzalloc(sizeof(dceip), GFP_KERNEL);
+	dceip = kzalloc(sizeof(*dceip), GFP_KERNEL);
 	if (!dceip)
 		return;
 
-	vbios = kzalloc(sizeof(vbios), GFP_KERNEL);
+	vbios = kzalloc(sizeof(*vbios), GFP_KERNEL);
 	if (!vbios) {
 		kfree(dceip);
 		return;

  parent reply	other threads:[~2021-03-20 20:39 UTC|newest]

Thread overview: 122+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19  8:24 [RESEND 00/19] Rid GPU from W=1 warnings Lee Jones
2021-03-19  8:24 ` Lee Jones
2021-03-19  8:24 ` Lee Jones
2021-03-19  8:24 ` [Nouveau] " Lee Jones
2021-03-19  8:24 ` [PATCH 01/19] drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:54   ` Karol Herbst
2021-03-19  9:54     ` Karol Herbst
2021-03-19  9:54     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 02/19] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  8:24 ` [PATCH 03/19] drm/msm/dp/dp_display: Remove unused variable 'hpd' Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24 ` [PATCH 04/19] include: drm: drm_atomic: Make use of 'new_plane_state' Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19 13:52   ` Ville Syrjälä
2021-03-19 13:52     ` Ville Syrjälä
2021-03-19  8:24 ` [PATCH 05/19] drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc headers Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:55   ` Karol Herbst
2021-03-19  9:55     ` Karol Herbst
2021-03-19  9:55     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 06/19] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19 18:13   ` Alex Deucher
2021-03-19 18:13     ` Alex Deucher
2021-03-19 18:13     ` Alex Deucher
2021-03-19 18:26     ` Harry Wentland
2021-03-19 18:26       ` Harry Wentland
2021-03-19 18:26       ` Harry Wentland
2021-03-19 18:31       ` Alex Deucher
2021-03-19 18:31         ` Alex Deucher
2021-03-19 18:31         ` Alex Deucher
2021-03-19 18:46       ` Christian König
2021-03-19 18:46         ` Christian König
2021-03-19 18:46         ` Christian König
2021-03-19 19:31         ` Alex Deucher
2021-03-19 19:31           ` Alex Deucher
2021-03-19 19:31           ` Alex Deucher
2021-03-19  8:24 ` [PATCH 07/19] drm/amd/display/dc/calcs/dce_calcs: Remove some large variables from the stack Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-20 20:38   ` kernel test robot
2021-03-20 20:39   ` kernel test robot [this message]
2021-03-19  8:24 ` [PATCH 08/19] drm/amd/display/dc/dce80/dce80_resource: Make local functions static Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19 18:24   ` Alex Deucher
2021-03-19 18:24     ` Alex Deucher
2021-03-19 18:24     ` Alex Deucher
2021-03-19 18:25   ` Harry Wentland
2021-03-19 18:25     ` Harry Wentland
2021-03-19 18:25     ` Harry Wentland
2021-03-19  8:24 ` [PATCH 09/19] drm/nouveau/nvkm/engine/gr/gf100: Demote non-conformant kernel-doc header Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:55   ` Karol Herbst
2021-03-19  9:55     ` Karol Herbst
2021-03-19  9:55     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 10/19] drm/nouveau/nouveau_bo: Remove unused variables 'dev' Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:56   ` Karol Herbst
2021-03-19  9:56     ` Karol Herbst
2021-03-19  9:56     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 11/19] drm/nouveau/nouveau_display: Remove set but unused variable 'width' Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  8:24 ` [PATCH 12/19] drm/nouveau/dispnv04/crtc: Demote non-conforming kernel-doc headers Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:57   ` Karol Herbst
2021-03-19  9:57     ` Karol Herbst
2021-03-19  9:57     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 13/19] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' from function returning void Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  8:24 ` [PATCH 14/19] drm/nouveau/dispnv50/headc57d: Make local function 'headc57d_olut' static Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:58   ` Karol Herbst
2021-03-19  9:58     ` Karol Herbst
2021-03-19  9:58     ` [Nouveau] " Karol Herbst
2021-03-19 17:36   ` Lyude Paul
2021-03-19 17:36     ` Lyude Paul
2021-03-19 17:36     ` [Nouveau] " Lyude Paul
2021-03-19  8:24 ` [PATCH 15/19] drm/nouveau/nv50_display: Remove superfluous prototype for local static functions Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:56   ` Karol Herbst
2021-03-19  9:56     ` Karol Herbst
2021-03-19  9:56     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 16/19] drm/nouveau/dispnv50/disp: Include header containing our prototypes Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  8:24 ` [PATCH 17/19] drm/nouveau/nouveau_ioc32: File headers are not good candidates for kernel-doc Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:57   ` Karol Herbst
2021-03-19  9:57     ` Karol Herbst
2021-03-19  9:57     ` [Nouveau] " Karol Herbst
2021-03-19  8:24 ` [PATCH 18/19] drm/nouveau/nouveau_svm: Remove unused variable 'ret' from void function Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  8:24 ` [PATCH 19/19] drm/nouveau/nouveau_ioc32: Demote kernel-doc abuse to standard comment block Lee Jones
2021-03-19  8:24   ` Lee Jones
2021-03-19  8:24   ` [Nouveau] " Lee Jones
2021-03-19  9:57   ` Karol Herbst
2021-03-19  9:57     ` Karol Herbst
2021-03-19  9:57     ` [Nouveau] " Karol Herbst
2021-03-24 10:36 ` [RESEND 00/19] Rid GPU from W=1 warnings Lee Jones
2021-03-24 10:36   ` Lee Jones
2021-03-24 10:36   ` Lee Jones
2021-03-24 10:36   ` [Nouveau] " Lee Jones
2021-03-30 15:19   ` Lee Jones
2021-03-30 15:19     ` Lee Jones
2021-03-30 15:19     ` Lee Jones
2021-03-30 15:19     ` [Nouveau] " Lee Jones

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=20210320203902.GA16190@d2f0d42e889c \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.