mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hexagon: uapi: Fix structure alignment attribute
@ 2025-12-22  7:40 Thomas Weißschuh
  2025-12-22  9:23 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Weißschuh @ 2025-12-22  7:40 UTC (permalink / raw)
  To: Brian Cain
  Cc: linux-hexagon, linux-kernel, Arnd Bergmann, Thomas Weißschuh

__aligned() is a kernel macro, which is not available in UAPI headers.

Use the compiler-provided alignment attribute directly.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
 arch/hexagon/include/uapi/asm/sigcontext.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/hexagon/include/uapi/asm/sigcontext.h b/arch/hexagon/include/uapi/asm/sigcontext.h
index 7171edb1b8b7..179a97041b59 100644
--- a/arch/hexagon/include/uapi/asm/sigcontext.h
+++ b/arch/hexagon/include/uapi/asm/sigcontext.h
@@ -29,6 +29,6 @@
  */
 struct sigcontext {
 	struct user_regs_struct sc_regs;
-} __aligned(8);
+} __attribute__((aligned(8)));
 
 #endif

---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251222-uapi-hexagon-ff69e380328d

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hexagon: uapi: Fix structure alignment attribute
  2025-12-22  7:40 [PATCH] hexagon: uapi: Fix structure alignment attribute Thomas Weißschuh
@ 2025-12-22  9:23 ` Arnd Bergmann
  0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2025-12-22  9:23 UTC (permalink / raw)
  To: Thomas Weißschuh, Brian Cain; +Cc: linux-hexagon, linux-kernel

On Mon, Dec 22, 2025, at 08:40, Thomas Weißschuh wrote:
> __aligned() is a kernel macro, which is not available in UAPI headers.
>
> Use the compiler-provided alignment attribute directly.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>

Acked-by: Arnd Bergmann <arnd@arndb.de>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-22  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-22  7:40 [PATCH] hexagon: uapi: Fix structure alignment attribute Thomas Weißschuh
2025-12-22  9:23 ` Arnd Bergmann

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®