Content-Type: multipart/mixed; boundary="===============0572180228941557850==" MIME-Version: 1.0 From: kbuild test robot To: kbuild-all@lists.01.org Subject: [PATCH] clk: bcm: rpi: fix noderef.cocci warnings Date: Tue, 25 Feb 2020 00:47:41 +0800 Message-ID: <20200224164741.GA25223@e50d7db646c3> In-Reply-To: List-Id: --===============0572180228941557850== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kbuild test robot drivers/clk/bcm/clk-raspberrypi.c:327:31-37: ERROR: application of sizeof t= o pointer sizeof when applied to a pointer typed expression gives the size of the pointer Generated by: scripts/coccinelle/misc/noderef.cocci Fixes: 56ccc5cfbb47 ("clk: bcm: rpi: Discover the firmware clocks") CC: Maxime Ripard Signed-off-by: kbuild test robot --- url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-vc4-Supp= ort-BCM2711-Display-Pipeline/20200224-172730 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-n= ext clk-raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -324,7 +324,7 @@ static struct clk_hw *raspberrypi_clk_re return hw; } = - data =3D devm_kzalloc(rpi->dev, sizeof(data), GFP_KERNEL); + data =3D devm_kzalloc(rpi->dev, sizeof(*data), GFP_KERNEL); if (!data) return ERR_PTR(-ENOMEM); data->rpi =3D rpi; --===============0572180228941557850==--