Messages in this thread | | | Date | Mon, 9 Aug 2010 10:07:23 +0200 | From | Ingo Molnar <> | Subject | Re: [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
| |