From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [PATCH] gpio: fix noderef.cocci warnings
Date: Thu, 19 Aug 2021 01:53:08 +0800 [thread overview]
Message-ID: <20210818175308.GA5405@bdc9b8a0f2b3> (raw)
In-Reply-To: <5c7fa820040852362bc2e48c7f879631caf7112b.1629284933.git.viresh.kumar@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]
From: kernel test robot <lkp@intel.com>
drivers/gpio/gpio-virtio.c:261:42-48: 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: Viresh Kumar <viresh.kumar@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/Viresh-Kumar/gpio-Add-virtio-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 = devm_kcalloc(dev, config->ngpio, sizeof(names), GFP_KERNEL);
+ names = devm_kcalloc(dev, config->ngpio, sizeof(*names), GFP_KERNEL);
if (!names)
return NULL;
prev parent reply other threads:[~2021-08-18 17:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-18 11:14 [PATCH V6] gpio: Add virtio-gpio driver Viresh Kumar
2021-08-18 11:14 ` Viresh Kumar
2021-08-18 17:53 ` kernel test robot
2021-08-18 17:53 ` kernel test robot [this message]
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=20210818175308.GA5405@bdc9b8a0f2b3 \
--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.