From: Vivek Gautam <vivek.gautam@codeaurora.org>
To: Kishon Vijay Abraham I <kishon@ti.com>
Cc: kbuild test robot <fengguang.wu@intel.com>,
kbuild-all@01.org, Stephen Boyd <sboyd@codeaurora.org>,
Wei Yongjun <weiyongjun1@huawei.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] phy: qcom-qmp: fix noderef.cocci warnings
Date: Tue, 25 Apr 2017 13:38:36 +0530 [thread overview]
Message-ID: <5942f3d9-cd6b-d06c-c1f4-990566fb3a9d@codeaurora.org> (raw)
In-Reply-To: <20170406155859.GA313@lkp-wsm-ep1>
Hi Kishon,
On 04/06/2017 09:28 PM, kbuild test robot wrote:
> drivers/phy/phy-qcom-qmp.c:847:37-43: 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: Vivek Gautam <vivek.gautam@codeaurora.org>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
Reviewed-by: Vivek Gautam <vivek.gautam@codeaurora.org>
This patch got missed. Please consider pulling it in along with one more
patch [1] from Wei Yongjun.
[1] https://lkml.org/lkml/2017/4/24/1080
Best Regards
Vivek
>
> phy-qcom-qmp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/phy/phy-qcom-qmp.c
> +++ b/drivers/phy/phy-qcom-qmp.c
> @@ -844,7 +844,7 @@ static int qcom_qmp_phy_vreg_init(struct
> int num = qmp->cfg->num_vregs;
> int i;
>
> - qmp->vregs = devm_kcalloc(dev, num, sizeof(qmp->vregs), GFP_KERNEL);
> + qmp->vregs = devm_kcalloc(dev, num, sizeof(*qmp->vregs), GFP_KERNEL);
> if (!qmp->vregs)
> return -ENOMEM;
>
--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
parent reply other threads:[~2017-04-25 8:12 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20170406155859.GA313@lkp-wsm-ep1>]
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=5942f3d9-cd6b-d06c-c1f4-990566fb3a9d@codeaurora.org \
--to=vivek.gautam@codeaurora.org \
--cc=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sboyd@codeaurora.org \
--cc=weiyongjun1@huawei.com \
/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
all inboxes | Powered by JetHome®