From: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, Johan Hovold <johan@kernel.org>,
Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org,
Martyn Welch <martyn.welch@collabora.co.uk>
Subject: [PATCH] USB: serial: cp210x: fix noderef.cocci warnings
Date: Thu, 14 Jan 2016 01:57:16 +0800 [thread overview]
Message-ID: <20160113175716.GA8557@lkp-nex05> (raw)
In-Reply-To: <1452688237-30385-1-git-send-email-martyn.welch@collabora.co.uk>
drivers/usb/serial/cp210x.c:1132:15-21: 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: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
cp210x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -1129,7 +1129,7 @@ static int cp210x_shared_gpio_init(struc
if ((tmp & CP210X_FEATURE_HAS_SHARED_GPIO) == 0)
return 0;
- buf = kzalloc(sizeof(buf), GFP_KERNEL);
+ buf = kzalloc(sizeof(*buf), GFP_KERNEL);
if (!buf)
return -ENOMEM;
next prev parent reply other threads:[~2016-01-13 17:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 17:57 [PATCH v2] USB: serial: cp210x: Adding GPIO support for CP2105 kbuild test robot
2016-01-13 12:30 ` Martyn Welch
2016-01-13 16:22 ` Martyn Welch
2016-01-13 17:57 ` kbuild test robot [this message]
2016-01-14 0:27 ` Konstantin Shkolnyy
2016-01-14 9:28 ` Linus Walleij
[not found] ` <BLUPR0701MB1572CDBC6E43EA82429B723491CC0-v5ruerSQ/ojJf3AXQIW3Ok5OhdzP3rhOnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-01-14 10:23 ` Martyn Welch
2016-01-14 14:29 ` Konstantin Shkolnyy
2016-01-14 15:17 ` Martyn Welch
2016-01-31 19:57 ` Johan Hovold
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=20160113175716.GA8557@lkp-nex05 \
--to=lkp@intel.com \
--cc=gnurou@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=kbuild-all@01.org \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=martyn.welch@collabora.co.uk \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).