microblaze: Do not initialized regs->r1 twice in ELF_PLAT_INIT
authorMichal Simek <michal.simek@xilinx.com>
Thu, 15 Nov 2012 14:42:20 +0000 (15:42 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 13 Dec 2012 13:38:58 +0000 (14:38 +0100)
Fix ELF_PLAT_INIT macro which initialized r1 twice which
ends in compilation warning.

Warning log:
fs/binfmt_elf.c: In function 'load_elf_binary':
fs/binfmt_elf.c:981:2: warning: operation on 'regs->r1' may be undefined [-Wsequence-point]
  CC      fs/dcookies.o

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/uapi/asm/elf.h

index 7eabd83227afdc024c3cf83b114302664b2f93cc..be1731d5e2fa2b600fb17acabe2622b04a0c65fb 100644 (file)
@@ -104,7 +104,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
 /* Added _f parameter. Is this definition correct: TBD */
 #define ELF_PLAT_INIT(_r, _f)                          \
 do {                                                   \
-       _r->r1 =  _r->r1 =  _r->r2 =  _r->r3 =          \
+       _r->r0 =  _r->r1 =  _r->r2 =  _r->r3 =          \
        _r->r4 =  _r->r5 =  _r->r6 =  _r->r7 =          \
        _r->r8 =  _r->r9 =  _r->r10 = _r->r11 =         \
        _r->r12 = _r->r13 = _r->r14 = _r->r15 =         \