linux-mips
[Top] [All Lists]

[PATCH] MIPS: remove RELOC_HIDE on __pa_symbol

To: Ralf Baechle <ralf@linux-mips.org>, linux-kernel@vger.kernel.org
Subject: [PATCH] MIPS: remove RELOC_HIDE on __pa_symbol
From: Namhyung Kim <namhyung@gmail.com>
Date: Mon, 9 Aug 2010 04:57:36 +0900
Cc: David Daney <ddaney@caviumnetworks.com>, linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=5xuStoK5steW+0AhGPQfh17VvJVIIF6bWJ2Ule4q4LA=; b=RWFAS18P76CmhyyJaihIlt+V6e3d/kHu4WSmkn1cn7f0Qqoy/QmcqOAkuR/6fW/0SL eq2km4M1Db8Q7uczjr7k3fuVphZ+A2GEt2kP2IliN6bExgUJl7D4Yl6kWsLrh+S6dvap x+eolbK1V/+jWDmrhK2qjrThp9qI8j082xbt0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=QSsXA1DBtF9BdVsgX3Rn8ZlNzdAdscwe6PYoICFUghlD8JBEhNLxgQFciatTyldVCc caBo/aqT5tvw4VxRvjgs4ndPI44qZ0V4Q6jViM2Ku7VL9JQSbjc5QiUjMvxVlW0G1Djb 4epTBEL6sH7b21ybWJxnO8mgxbCtfWUcP+RWQ=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
remove unneccessary use of RELOC_HIDE(). It does simple addition of ptr and
offset and in this case (offset 0) does practically nothing. It does NOT do
anything with linker relocation.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 arch/mips/include/asm/page.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h
index a16beaf..f7e2684 100644
--- a/arch/mips/include/asm/page.h
+++ b/arch/mips/include/asm/page.h
@@ -150,7 +150,7 @@ typedef struct { unsigned long pgprot; } pgprot_t;
     ((unsigned long)(x) - PAGE_OFFSET + PHYS_OFFSET)
 #endif
 #define __va(x)                ((void *)((unsigned long)(x) + PAGE_OFFSET - 
PHYS_OFFSET))
-#define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0))
+#define __pa_symbol(x) __pa(x)
 
 #define pfn_to_kaddr(pfn)      __va((pfn) << PAGE_SHIFT)
 
-- 
1.7.0.4


<Prev in Thread] Current Thread [Next in Thread>