aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-10 23:55:44 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-16 03:58:30 -0400
commit1680e4ba3d4f0ab12c387975584924f585fc77eb (patch)
treed72174e92393dd242efb2b3b535a9545661a02cd /arch/powerpc/boot
parent5e86bfde9cd93f272844c3ff6ac5f93d3666b3e7 (diff)
powerpc/boot/fdt: Use unsigned long for pointer casts
Now that the wrapper supports 64-bit builds, we see warnings when attempting to cast pointers to int. Use unsigned long instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/libfdt-wrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/boot/libfdt-wrapper.c b/arch/powerpc/boot/libfdt-wrapper.c
index bb8b9b3505ee..535e8fd8900d 100644
--- a/arch/powerpc/boot/libfdt-wrapper.c
+++ b/arch/powerpc/boot/libfdt-wrapper.c
@@ -44,12 +44,12 @@
44 44
45#define offset_devp(off) \ 45#define offset_devp(off) \
46 ({ \ 46 ({ \
47 int _offset = (off); \ 47 unsigned long _offset = (off); \
48 check_err(_offset) ? NULL : (void *)(_offset+1); \ 48 check_err(_offset) ? NULL : (void *)(_offset+1); \
49 }) 49 })
50 50
51#define devp_offset_find(devp) (((int)(devp))-1) 51#define devp_offset_find(devp) (((unsigned long)(devp))-1)
52#define devp_offset(devp) (devp ? ((int)(devp))-1 : 0) 52#define devp_offset(devp) (devp ? ((unsigned long)(devp))-1 : 0)
53 53
54static void *fdt; 54static void *fdt;
55static void *buf; /* = NULL */ 55static void *buf; /* = NULL */