From: Ard Biesheuvel Date: Fri, 18 Apr 2025 14:13:00 +0000 (+0200) Subject: x86/asm: Retire RIP_REL_REF() X-Git-Tag: v6.16-rc1~195^2~30^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff4c0560ab020d34baf0aa6434f66333d25ae524;p=thirdparty%2Fkernel%2Flinux.git x86/asm: Retire RIP_REL_REF() Now that all users have been moved into startup/ where PIC codegen is used, RIP_REL_REF() is no longer needed. Remove it. Signed-off-by: Ard Biesheuvel Signed-off-by: Ingo Molnar Cc: Brian Gerst Cc: David Woodhouse Cc: Dionna Amalie Glaze Cc: H. Peter Anvin Cc: Juergen Gross Cc: Kees Cook Cc: Kevin Loughlin Cc: Len Brown Cc: Linus Torvalds Cc: Rafael J. Wysocki Cc: Tom Lendacky Link: https://lore.kernel.org/r/20250418141253.2601348-14-ardb+git@google.com --- diff --git a/arch/x86/include/asm/asm.h b/arch/x86/include/asm/asm.h index a9f07799e337b..eef0771512dea 100644 --- a/arch/x86/include/asm/asm.h +++ b/arch/x86/include/asm/asm.h @@ -120,11 +120,6 @@ static __always_inline __pure void *rip_rel_ptr(void *p) return p; } -#ifndef __pic__ -#define RIP_REL_REF(var) (*(typeof(&(var)))rip_rel_ptr(&(var))) -#else -#define RIP_REL_REF(var) (var) -#endif #endif /*