[PATCH] hexagon: uapi: Fix structure alignment attribute

Thomas Weißschuh posted 1 patch 1 month, 2 weeks ago
arch/hexagon/include/uapi/asm/sigcontext.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] hexagon: uapi: Fix structure alignment attribute
Posted by Thomas Weißschuh 1 month, 2 weeks ago
__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>

Re: [PATCH] hexagon: uapi: Fix structure alignment attribute
Posted by Arnd Bergmann 1 month, 2 weeks ago
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>