* [PATCH] arch: m32r: kernel: use 'COPY_UNALIGNED_HWORD' instead of 'COPY_UNALIGNED_WORD'
@ 2013-06-26 3:58 Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-06-26 3:58 UTC (permalink / raw)
To: Hirokazu Takata
Cc: Rusty Russell, dhowells@redhat.com, Sam Ravnborg, linux-m32r,
linux-m32r-ja, linux-kernel@vger.kernel.org, Linux-Arch
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@asianux.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-26 3:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-26 3:58 [PATCH] arch: m32r: kernel: use 'COPY_UNALIGNED_HWORD' instead of 'COPY_UNALIGNED_WORD' Chen Gang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.