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>
This commit is contained in:
Родитель
5e86bfde9c
Коммит
1680e4ba3d
|
@ -44,12 +44,12 @@
|
||||||
|
|
||||||
#define offset_devp(off) \
|
#define offset_devp(off) \
|
||||||
({ \
|
({ \
|
||||||
int _offset = (off); \
|
unsigned long _offset = (off); \
|
||||||
check_err(_offset) ? NULL : (void *)(_offset+1); \
|
check_err(_offset) ? NULL : (void *)(_offset+1); \
|
||||||
})
|
})
|
||||||
|
|
||||||
#define devp_offset_find(devp) (((int)(devp))-1)
|
#define devp_offset_find(devp) (((unsigned long)(devp))-1)
|
||||||
#define devp_offset(devp) (devp ? ((int)(devp))-1 : 0)
|
#define devp_offset(devp) (devp ? ((unsigned long)(devp))-1 : 0)
|
||||||
|
|
||||||
static void *fdt;
|
static void *fdt;
|
||||||
static void *buf; /* = NULL */
|
static void *buf; /* = NULL */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче