]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: sifive: Fix -Wint-to-pointer-cast warning
authorBin Meng <bmeng.cn@gmail.com>
Sun, 12 Sep 2021 03:15:16 +0000 (11:15 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 20 Oct 2021 02:59:09 +0000 (10:59 +0800)
commitb18c4ae82f266d81281d63ac58945d92ed67afde
tree2736074739abe5029423d5a328c86c2cd2f8f49d
parentd36c94279dd4fceab928cf60947ad876284de86a
board: sifive: Fix -Wint-to-pointer-cast warning

The following warning is seen in unleashed.c in a 32-bit build:

  warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Cast with uintptr_t.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
board/sifive/unleashed/unleashed.c
board/sifive/unmatched/unmatched.c