Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=754e5f3f3a96264b96d5593242d81c7468af70cb
Commit:     754e5f3f3a96264b96d5593242d81c7468af70cb
Parent:     5c3f5892a2db6757a72ce8b27cba90db06683e1d
Author:     Scott Wood <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 12 08:23:04 2007 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Dec 20 16:11:46 2007 +1100

    [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 <[EMAIL PROTECTED]>
    Acked-by: David Gibson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
---
 arch/powerpc/boot/libfdt-wrapper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/boot/libfdt-wrapper.c 
b/arch/powerpc/boot/libfdt-wrapper.c
index 002da16..868c504 100644
--- a/arch/powerpc/boot/libfdt-wrapper.c
+++ b/arch/powerpc/boot/libfdt-wrapper.c
@@ -44,8 +44,8 @@
 
 #define offset_devp(off)       \
        ({ \
-               int offset = (off); \
-               check_err(offset) ? NULL : (void *)(offset+1); \
+               int _offset = (off); \
+               check_err(_offset) ? NULL : (void *)(_offset+1); \
        })
 
 #define devp_offset(devp)      (((int)(devp))-1)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to