Skip to content

error: the comparison will always evaluate as 'true' for the address of 'clk' will never be NULL #15

Open
@Rippanda12

Description

@Rippanda12

Hello, I'm trying to compile but it fails:

drivers/mmc/rockchip_dw_mmc.c: In function 'board_mmc_dm_reinit':
drivers/mmc/rockchip_dw_mmc.c:45:22: error: the comparison will always evaluate as 'true' for the address of 'clk' will never be NULL [-Werror=address]
   45 |         if (!priv || !&priv->clk)
      |                      ^
drivers/mmc/rockchip_dw_mmc.c:32:20: note: 'clk' declared here
   32 |         struct clk clk;
      |                    ^~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:280: drivers/mmc/rockchip_dw_mmc.o] Error 1

Im using archlinuxarm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions