aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2007-12-11 16:23:04 -0500
committerPaul Mackerras <paulus@samba.org>2007-12-20 00:11:46 -0500
commit754e5f3f3a96264b96d5593242d81c7468af70cb (patch)
treeb55dc0a2c191e27d3fcf0fe58f2ceb5ff94bdd91 /arch/powerpc/boot
parent5c3f5892a2db6757a72ce8b27cba90db06683e1d (diff)
[POWERPC] wrapper: Rename offset in offset_devp()
fdt_wrapper_create_node passes a variable called offset to offset_devp(), which uses said parameter to initialize a local variable called offset. Due to one of the odder aspects of the C language, the result is an undefined variable, with no error or warning. Signed-off-by: Scott Wood <scottwood@freescale.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r--arch/powerpc/boot/libfdt-wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/boot/libfdt-wrapper.c b/arch/powerpc/boot/libfdt-wrapper.c
index 002da16c97c1..868c5049a80b 100644
--- a/arch/powerpc/boot/libfdt-wrapper.c
+++ b/arch/powerpc/boot/libfdt-wrapper.c
@@ -44,8 +44,8 @@
44 44
45#define offset_devp(off) \ 45#define offset_devp(off) \
46 ({ \ 46 ({ \
47 int offset = (off); \ 47 int _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(devp) (((int)(devp))-1) 51#define devp_offset(devp) (((int)(devp))-1)