* [PATCH resend] compiler-intel: Remove duplicate RELOC_HIDE()
@ 2023-01-31 10:37 Geert Uytterhoeven
2023-01-31 10:41 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2023-01-31 10:37 UTC (permalink / raw)
To: Masahiro Yamada, Arnd Bergmann, Andrew Morton, H . Peter Anvin
Cc: linux-kbuild, linux-kernel, Geert Uytterhoeven
The RELOC_HIDE() implementation for the Intel compiler is identical to
the generic version in <linux/compiler.h>, so the former can just be
removed.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Not even compile-tested.
---
include/linux/compiler-intel.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/linux/compiler-intel.h b/include/linux/compiler-intel.h
index b17f3cd18334df3d..efc8fafb58f595b2 100644
--- a/include/linux/compiler-intel.h
+++ b/include/linux/compiler-intel.h
@@ -16,11 +16,6 @@
#define barrier() __memory_barrier()
#define barrier_data(ptr) barrier()
-#define RELOC_HIDE(ptr, off) \
- ({ unsigned long __ptr; \
- __ptr = (unsigned long) (ptr); \
- (typeof(ptr)) (__ptr + (off)); })
-
/* This should act as an optimization barrier on var.
* Given that this compiler does not have inline assembly, a compiler barrier
* is the best we can do.
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH resend] compiler-intel: Remove duplicate RELOC_HIDE()
2023-01-31 10:37 [PATCH resend] compiler-intel: Remove duplicate RELOC_HIDE() Geert Uytterhoeven
@ 2023-01-31 10:41 ` Arnd Bergmann
2023-01-31 10:58 ` Rasmus Villemoes
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2023-01-31 10:41 UTC (permalink / raw)
To: Geert Uytterhoeven, Masahiro Yamada, Andrew Morton, H. Peter Anvin
Cc: linux-kbuild, linux-kernel
On Tue, Jan 31, 2023, at 11:37, Geert Uytterhoeven wrote:
> The RELOC_HIDE() implementation for the Intel compiler is identical to
> the generic version in <linux/compiler.h>, so the former can just be
> removed.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> Not even compile-tested.
> ---
> include/linux/compiler-intel.h | 5 -----
> 1 file changed, 5 deletions(-)
I thought the entire file was gone already. I don't see anyone
objecting to the earlier patch
https://lore.kernel.org/all/20221016182349.49308-1-masahiroy@kernel.org/
but it never made it in. Maybe we can revive that instead?
Otherwise, your patch looks obviously correct as well.
Acked-by: Arnd Bergmann <arnd@arndb.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH resend] compiler-intel: Remove duplicate RELOC_HIDE()
2023-01-31 10:41 ` Arnd Bergmann
@ 2023-01-31 10:58 ` Rasmus Villemoes
2023-01-31 11:29 ` Masahiro Yamada
0 siblings, 1 reply; 4+ messages in thread
From: Rasmus Villemoes @ 2023-01-31 10:58 UTC (permalink / raw)
To: Arnd Bergmann, Geert Uytterhoeven, Masahiro Yamada,
Andrew Morton, H. Peter Anvin
Cc: linux-kbuild, linux-kernel
On 31/01/2023 11.41, Arnd Bergmann wrote:
> On Tue, Jan 31, 2023, at 11:37, Geert Uytterhoeven wrote:
>> The RELOC_HIDE() implementation for the Intel compiler is identical to
>> the generic version in <linux/compiler.h>, so the former can just be
>> removed.
>>
>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>> ---
>> Not even compile-tested.
>> ---
>> include/linux/compiler-intel.h | 5 -----
>> 1 file changed, 5 deletions(-)
>
> I thought the entire file was gone already. I don't see anyone
> objecting to the earlier patch
>
> https://lore.kernel.org/all/20221016182349.49308-1-masahiroy@kernel.org/
>
> but it never made it in. Maybe we can revive that instead?
Yes, please!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH resend] compiler-intel: Remove duplicate RELOC_HIDE()
2023-01-31 10:58 ` Rasmus Villemoes
@ 2023-01-31 11:29 ` Masahiro Yamada
0 siblings, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2023-01-31 11:29 UTC (permalink / raw)
To: Rasmus Villemoes
Cc: Arnd Bergmann, Geert Uytterhoeven, Andrew Morton, H. Peter Anvin,
linux-kbuild, linux-kernel
On Tue, Jan 31, 2023 at 7:59 PM Rasmus Villemoes
<rasmus.villemoes@prevas.dk> wrote:
>
> On 31/01/2023 11.41, Arnd Bergmann wrote:
> > On Tue, Jan 31, 2023, at 11:37, Geert Uytterhoeven wrote:
> >> The RELOC_HIDE() implementation for the Intel compiler is identical to
> >> the generic version in <linux/compiler.h>, so the former can just be
> >> removed.
> >>
> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >> ---
> >> Not even compile-tested.
> >> ---
> >> include/linux/compiler-intel.h | 5 -----
> >> 1 file changed, 5 deletions(-)
> >
> > I thought the entire file was gone already. I don't see anyone
> > objecting to the earlier patch
> >
> > https://lore.kernel.org/all/20221016182349.49308-1-masahiroy@kernel.org/
> >
> > but it never made it in. Maybe we can revive that instead?
>
> Yes, please!
>
I hoped it would be picked up by Linus directly,
or by an x86 maintainer.
We can re-push it in the next merge window.
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-31 11:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 10:37 [PATCH resend] compiler-intel: Remove duplicate RELOC_HIDE() Geert Uytterhoeven
2023-01-31 10:41 ` Arnd Bergmann
2023-01-31 10:58 ` Rasmus Villemoes
2023-01-31 11:29 ` Masahiro Yamada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®