diff options
author | Michal Simek <michal.simek@xilinx.com> | 2012-11-15 09:42:20 -0500 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2012-12-13 08:38:58 -0500 |
commit | b881e99eeadcc5a6194e225ba3986fde545469d3 (patch) | |
tree | 1a5d64024bf7c8a07488507f0be6e7a181d19d58 /arch/microblaze/include | |
parent | 1475b0f4b4334564470a8606086a42954aa06ba9 (diff) |
microblaze: Do not initialized regs->r1 twice in ELF_PLAT_INIT
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>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/uapi/asm/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/uapi/asm/elf.h b/arch/microblaze/include/uapi/asm/elf.h index 7eabd83227af..be1731d5e2fa 100644 --- a/arch/microblaze/include/uapi/asm/elf.h +++ b/arch/microblaze/include/uapi/asm/elf.h | |||
@@ -104,7 +104,7 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG]; | |||
104 | /* Added _f parameter. Is this definition correct: TBD */ | 104 | /* Added _f parameter. Is this definition correct: TBD */ |
105 | #define ELF_PLAT_INIT(_r, _f) \ | 105 | #define ELF_PLAT_INIT(_r, _f) \ |
106 | do { \ | 106 | do { \ |
107 | _r->r1 = _r->r1 = _r->r2 = _r->r3 = \ | 107 | _r->r0 = _r->r1 = _r->r2 = _r->r3 = \ |
108 | _r->r4 = _r->r5 = _r->r6 = _r->r7 = \ | 108 | _r->r4 = _r->r5 = _r->r6 = _r->r7 = \ |
109 | _r->r8 = _r->r9 = _r->r10 = _r->r11 = \ | 109 | _r->r8 = _r->r9 = _r->r10 = _r->r11 = \ |
110 | _r->r12 = _r->r13 = _r->r14 = _r->r15 = \ | 110 | _r->r12 = _r->r13 = _r->r14 = _r->r15 = \ |