]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hexagon: uapi: Fix structure alignment attribute
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 27 Feb 2026 06:37:59 +0000 (07:37 +0100)
committerNicolas Schier <nsc@kernel.org>
Thu, 12 Mar 2026 11:48:07 +0000 (12:48 +0100)
__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>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Tested-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260227-kbuild-uapi-libc-v1-1-c17de0d19776@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>
arch/hexagon/include/uapi/asm/sigcontext.h

index 7171edb1b8b712b1c2e3352ec86ba6001f80dee1..179a97041b593bc7c505a57e8c606af2e711f12f 100644 (file)
@@ -29,6 +29,6 @@
  */
 struct sigcontext {
        struct user_regs_struct sc_regs;
-} __aligned(8);
+} __attribute__((aligned(8)));
 
 #endif