[PATCH 1/9] cache: sifive: Fix -Wint-to-pointer-cast warning

Bin Meng bmeng.cn at gmail.com
Mon Oct 11 05:14:21 CEST 2021


On Wed, Sep 15, 2021 at 11:40 AM Leo Liang <ycliang at andestech.com> wrote:
>
> On Sun, Sep 12, 2021 at 11:15:08AM +0800, Bin Meng wrote:
> > The following warning is seen in cache-sifive-ccache.c in a 32-bit build:
> >
> >   warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> >
> > Fix by casting it with uintptr_t.
> >
> > Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> > ---
> >
> >  drivers/cache/cache-sifive-ccache.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>

Ping for apply?


More information about the U-Boot mailing list