diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-08-25 16:13:50 +0400 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2021-08-26 10:58:26 +1000 |
commit | 5eb5927d81ee6036f45c4e1bd89ae66ed325d721 (patch) | |
tree | 5482334f42058b2019f08cef6b739bb1fd8751e8 /fdtdump.c | |
parent | 0869f8269161843a46c0cac0e35b4dc9324bf1a6 (diff) | |
download | device-tree-compiler-5eb5927d81ee6036f45c4e1bd89ae66ed325d721.tar.gz |
fdtdump: fix -Werror=int-to-pointer-cast
With mingw64-gcc, the compiler complains with various warnings:
error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210825121350.213551-1-marcandre.lureau@redhat.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'fdtdump.c')
-rw-r--r-- | fdtdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,7 +21,7 @@ #define MAX_VERSION 17U #define ALIGN(x, a) (((x) + ((a) - 1)) & ~((a) - 1)) -#define PALIGN(p, a) ((void *)(ALIGN((unsigned long)(p), (a)))) +#define PALIGN(p, a) ((void *)(ALIGN((uintptr_t)(p), (a)))) #define GET_CELL(p) (p += 4, *((const fdt32_t *)(p-4))) static const char *tagname(uint32_t tag) |