lmb: Move enum lmb_flags to a u32
LMB flags is not an enum anymore. It's currently used as a bitmask
in various places of our code. So make it a u32 which is more
appropriate when dealing with masks.
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
(cherry picked from commit 3d56c06551)
This commit is contained in:
committed by
Simon Glass
parent
bfd75a7f81
commit
65a9881993
@@ -70,7 +70,7 @@ static const struct legacy_img_hdr *image_get_fdt(ulong fdt_addr)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void boot_fdt_reserve_region(u64 addr, u64 size, enum lmb_flags flags)
|
||||
static void boot_fdt_reserve_region(u64 addr, u64 size, u32 flags)
|
||||
{
|
||||
long ret;
|
||||
|
||||
@@ -102,7 +102,7 @@ void boot_fdt_add_mem_rsv_regions(void *fdt_blob)
|
||||
int i, total, ret;
|
||||
int nodeoffset, subnode;
|
||||
struct fdt_resource res;
|
||||
enum lmb_flags flags;
|
||||
u32 flags;
|
||||
|
||||
if (fdt_check_header(fdt_blob) != 0)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user