From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1656267108997029663==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] FROMGIT: phy: qcom: fix noderef.cocci warnings Date: Tue, 07 Dec 2021 16:45:25 +0800 Message-ID: <20211207084525.GA65680@682860b90866> List-Id: --===============1656267108997029663== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/phy/qualcomm/phy-qcom-edp.c:574:31-37: 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: Bjorn Andersson Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chr= omeos-5.15 head: 91c5c24324cab361d7cf36992ca5ad028748ee32 commit: ee0fea14381c6a5fef385c64255fe47610468495 [14/17] FROMGIT: phy: qcom= : Introduce new eDP PHY driver :::::: branch date: 9 hours ago :::::: commit date: 4 days ago phy-qcom-edp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -571,7 +571,7 @@ static int qcom_edp_clks_register(struct struct clk_init_data init =3D { }; int ret; = - data =3D devm_kzalloc(edp->dev, sizeof(data), GFP_KERNEL); + data =3D devm_kzalloc(edp->dev, sizeof(*data), GFP_KERNEL); if (!data) return -ENOMEM; =20 --===============1656267108997029663==--