mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] phy: qcom-qmp: fix noderef.cocci warnings
       [not found] ` <20170406155859.GA313@lkp-wsm-ep1>
@ 2017-04-25  8:08   ` Vivek Gautam
  0 siblings, 0 replies; only message in thread
From: Vivek Gautam @ 2017-04-25  8:08 UTC (permalink / raw)
  To: Kishon Vijay Abraham I
  Cc: kbuild test robot, kbuild-all, Stephen Boyd, Wei Yongjun, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-25  8:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201704062348.e3H0T60V%fengguang.wu@intel.com>
     [not found] ` <20170406155859.GA313@lkp-wsm-ep1>
2017-04-25  8:08   ` [PATCH] phy: qcom-qmp: fix noderef.cocci warnings Vivek Gautam

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®