lkml.org 
[lkml]   [2010]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: remove __phys_reloc_hide

* Namhyung Kim <namhyung@gmail.com> wrote:

> remove unnecessary use of RELOC_HIDE(). It only does simple addition of ptr
> and offset, and in this case, offset 0, does nothing. It does NOT do anything
> with linker relocation things. I could find no reason to use it.
>
> The only user of __phys_reloc_hide() was __pa_symbol() so it can be removed
> safely here.
>
> Signed-off-by: Namhyung Kim <namhyung@gmail.com>
> ---
> arch/x86/include/asm/page.h | 5 ++---
> arch/x86/include/asm/page_32.h | 1 -
> arch/x86/include/asm/page_64_types.h | 1 -
> 3 files changed, 2 insertions(+), 5 deletions(-)

We do this as a general Voodoo barrier against GCC miscompilations.

You are right that it's largely moot by today (and especially so on x86 - i
only remember a single instance of miscompilation that Rusty mentioned few
years ago, and that was on powerpc), but the wrapper is simple enough, so
unless there's some real tangible improvement in the binary output we might as
well keep it.

Peter, what do you think?

Ingo


\
 
 \ /
  Last update: 2010-08-09 10:11    [W:0.083 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site