From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 09 Aug 2010 14:21:59 +0200 (CEST) Received: from h5.dl5rb.org.uk ([81.2.74.5]:59175 "EHLO h5.dl5rb.org.uk" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1491992Ab0HIMVz (ORCPT ); Mon, 9 Aug 2010 14:21:55 +0200 Received: from h5.dl5rb.org.uk (localhost.localdomain [127.0.0.1]) by h5.dl5rb.org.uk (8.14.4/8.14.3) with ESMTP id o79CLnUQ023187; Mon, 9 Aug 2010 13:21:50 +0100 Received: (from ralf@localhost) by h5.dl5rb.org.uk (8.14.4/8.14.4/Submit) id o79CLm2K023185; Mon, 9 Aug 2010 13:21:48 +0100 Date: Mon, 9 Aug 2010 13:21:47 +0100 From: Ralf Baechle To: David Daney Cc: Namhyung Kim , linux-kernel@vger.kernel.org, David Daney , linux-mips@linux-mips.org Subject: Re: [PATCH] MIPS: remove RELOC_HIDE on __pa_symbol Message-ID: <20100809122147.GA23053@linux-mips.org> References: <1281297456-2711-1-git-send-email-namhyung@gmail.com> <4C5F8ED8.90301@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C5F8ED8.90301@gmail.com> User-Agent: Mutt/1.5.20 (2009-12-10) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 27608 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Sun, Aug 08, 2010 at 10:15:04PM -0700, David Daney wrote: > On 08/08/2010 12:57 PM, Namhyung Kim wrote: > >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. > > > > Maybe you could explain in more detail the problems you are having > with the current definition of __pa_symbol(). I would be hesitant > to change this bit of black magic unless there is a concrete problem > you are trying to solve. RELOC_HIDE was originally added by 6007b903dfe5f1d13e0c711ac2894bdd4a61b1ad (lmo) rsp. 8431fd094d625b94d364fe393076ccef88e6ce18 (kernel.org). A discussion can be found in lkml posting a2ebde260608230500o3407b108hc03debb9da6e62c@mail.gmail.com> which is archived at http://lists.linuxcoding.com/kernel/2006-q3/msg17360.html I felt this was dubious by the time it was added and probably should go? Ralf