Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rippanda12 opened this issue Dec 13, 2022 · 1 comment

Comments

@Rippanda12
Copy link

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

@RadxaYuntian
Copy link
Member

I don't know which branch you are compiling but you can try the following patch:

https://github.com/radxa-repo/bsp/blob/main/u-boot/rk3588/0100-vendor/0001-Fix-Werror-address.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants