From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1299618753329087190==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] gpio: fix noderef.cocci warnings Date: Thu, 19 Aug 2021 01:53:08 +0800 Message-ID: <20210818175308.GA5405@bdc9b8a0f2b3> In-Reply-To: <5c7fa820040852362bc2e48c7f879631caf7112b.1629284933.git.viresh.kumar@linaro.org> List-Id: --===============1299618753329087190== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/gpio/gpio-virtio.c:261:42-48: ERROR: application of sizeof to point= er sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci CC: Viresh Kumar Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-ci/linux/commits/Viresh-Kumar/gpio-Add-virt= io-gpio-driver/20210818-191612 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = 614cb2751d3150850d459bee596c397f344a7936 :::::: branch date: 7 hours ago :::::: commit date: 7 hours ago gpio-virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpio/gpio-virtio.c +++ b/drivers/gpio/gpio-virtio.c @@ -258,7 +258,7 @@ static const char **virtio_gpio_get_name return NULL; } = - names =3D devm_kcalloc(dev, config->ngpio, sizeof(names), GFP_KERNEL); + names =3D devm_kcalloc(dev, config->ngpio, sizeof(*names), GFP_KERNEL); if (!names) return NULL; =20 --===============1299618753329087190==--