summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-11 12:55:44 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2015-03-16 18:58:30 +1100
commit1680e4ba3d4f0ab12c387975584924f585fc77eb (patch)
treed72174e92393dd242efb2b3b535a9545661a02cd /arch/powerpc/boot
parent5e86bfde9cd93f272844c3ff6ac5f93d3666b3e7 (diff)
downloadop-kernel-dev-1680e4ba3d4f0ab12c387975584924f585fc77eb.zip
op-kernel-dev-1680e4ba3d4f0ab12c387975584924f585fc77eb.tar.gz
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 bb8b9b3..535e8fd 100644
--- a/arch/powerpc/boot/libfdt-wrapper.c
+++ b/arch/powerpc/boot/libfdt-wrapper.c
@@ -44,12 +44,12 @@
#define offset_devp(off) \
({ \
- int _offset = (off); \
+ unsigned long _offset = (off); \
check_err(_offset) ? NULL : (void *)(_offset+1); \
})
-#define devp_offset_find(devp) (((int)(devp))-1)
-#define devp_offset(devp) (devp ? ((int)(devp))-1 : 0)
+#define devp_offset_find(devp) (((unsigned long)(devp))-1)
+#define devp_offset(devp) (devp ? ((unsigned long)(devp))-1 : 0)
static void *fdt;
static void *buf; /* = NULL */
OpenPOWER on IntegriCloud