boot: image-board: Mismatch a type between variable and return value 43/319943/1
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 5 Nov 2024 09:39:20 +0000 (18:39 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 5 Nov 2024 09:49:01 +0000 (18:49 +0900)
commit5db211d1733b01013ba4927a1fed635892e706a6
tree44898702d8bbc801e524f592a99e216c9b84ee34
parentfa577c9ef93f7603d493b79ceedfc82731a1333a
boot: image-board: Mismatch a type between variable and return value

phys_addr_t can be used unsigned long long type with CONFIG_PHYS_64BIT.
But hextoul() is always returning to unsigned long. It can be assigned
to unexpected value. To avoid wrong behavior, change from hextoul() to
simple_strtoull().

Fixes: a4df06e41fa2 ("boot: fdt: Change type of env_get_bootm_low() to phys_addr_t")
Change-Id: Ia7c25f8fbc8e31bdd7abd1f9cf599c4c873dd769
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
boot/image-board.c