From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751571Ab3FZE7Z (ORCPT ); Wed, 26 Jun 2013 00:59:25 -0400 Received: from intranet.asianux.com ([58.214.24.6]:54926 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729Ab3FZE7W (ORCPT ); Wed, 26 Jun 2013 00:59:22 -0400 X-Spam-Score: -100.8 Message-ID: <51CA66FD.1010708@asianux.com> Date: Wed, 26 Jun 2013 11:58:53 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hirokazu Takata CC: Rusty Russell , "dhowells@redhat.com" , Sam Ravnborg , linux-m32r@ml.linux-m32r.org, linux-m32r-ja@ml.linux-m32r.org, "linux-kernel@vger.kernel.org" , Linux-Arch Subject: [PATCH] arch: m32r: kernel: use 'COPY_UNALIGNED_HWORD' instead of 'COPY_UNALIGNED_WORD' Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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