[PATCH] arch: m32r: kernel: use 'COPY_UNALIGNED_HWORD' instead of'COPY_UNALIGNED_WORD'
From: Chen Gang
Date: Wed Jun 26 2013 - 00:59:41 EST
For 'hvalue' and 'hlocation', need use 'COPY_UNALIGNED_HWORD' instead
The related warnings (with allmodconfig)
CC arch/m32r/kernel/module.o
arch/m32r/kernel/module.c: In function ‘apply_relocate_add’:
arch/m32r/kernel/module.c:127:8: warning: ‘*((void *)&hvalue+2)’ is used uninitialized in this function [-Wuninitialized]
arch/m32r/kernel/module.c:127:8: warning: ‘*((void *)&hvalue+2)’ is used uninitialized in this function [-Wuninitialized]
arch/m32r/kernel/module.c:127:8: warning: ‘*((void *)&hvalue+3)’ is used uninitialized in this function [-Wuninitialized]
Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx>
---
arch/m32r/kernel/module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/m32r/kernel/module.c b/arch/m32r/kernel/module.c
index 38233b6..bcad14c 100644
--- a/arch/m32r/kernel/module.c
+++ b/arch/m32r/kernel/module.c
@@ -124,7 +124,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs,
relocation = relocation & 0xffff;
/* RELA must has 0 at relocation field. */
hvalue = relocation;
- COPY_UNALIGNED_WORD (hvalue, *hlocation, align);
+ COPY_UNALIGNED_HWORD(hvalue, *hlocation, align);
break;
case R_M32R_SDA16_RELA:
case R_M32R_LO16_RELA:
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/