Content-Type: multipart/mixed; boundary="===============2286962054717535921==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] drm/i915/: fix noderef.cocci warnings Date: Thu, 10 Feb 2022 00:52:01 +0800 Message-ID: <20220209165201.GA22167@9a302928fedb> In-Reply-To: <20220207201127.648624-5-michael.cheng@intel.com> List-Id: --===============2286962054717535921== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1310:32-38: ERROR: applicati= on of sizeof to pointer drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c:1322:32-38: ERROR: applicati= on 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: Michael Cheng Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Michael-Cheng/Use-drm_clfl= ush-instead-of-clflush/20220208-041326 base: git://anongit.freedesktop.org/drm-intel for-linux-next :::::: branch date: 2 days ago :::::: commit date: 2 days ago i915_gem_execbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c @@ -1307,7 +1307,7 @@ static void clflush_write32(u32 *addr, u { if (unlikely(flushes & (CLFLUSH_BEFORE | CLFLUSH_AFTER))) { if (flushes & CLFLUSH_BEFORE) - drm_clflush_virt_range(addr, sizeof(addr)); + drm_clflush_virt_range(addr, sizeof(*addr)); = *addr =3D value; = @@ -1319,7 +1319,7 @@ static void clflush_write32(u32 *addr, u * to ensure ordering of clflush wrt to the system. */ if (flushes & CLFLUSH_AFTER) - drm_clflush_virt_range(addr, sizeof(addr)); + drm_clflush_virt_range(addr, sizeof(*addr)); } else *addr =3D value; } --===============2286962054717535921==--