lkml.org 
[lkml]   [2020]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] clk: bcm: rpi: fix noderef.cocci warnings
    From: kbuild test robot <lkp@intel.com>

    drivers/clk/bcm/clk-raspberrypi.c:327: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

    Fixes: 56ccc5cfbb47 ("clk: bcm: rpi: Discover the firmware clocks")
    CC: Maxime Ripard <maxime@cerno.tech>
    Signed-off-by: kbuild test robot <lkp@intel.com>
    ---

    url: https://github.com/0day-ci/linux/commits/Maxime-Ripard/drm-vc4-Support-BCM2711-Display-Pipeline/20200224-172730
    base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next

    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 = devm_kzalloc(rpi->dev, sizeof(data), GFP_KERNEL);
    + data = devm_kzalloc(rpi->dev, sizeof(*data), GFP_KERNEL);
    if (!data)
    return ERR_PTR(-ENOMEM);
    data->rpi = rpi;
    \
     
     \ /
      Last update: 2020-02-24 17:49    [W:2.671 / U:1.836 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site