]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
m68k: uapi: Add ucontext.h
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 14 Mar 2026 12:16:28 +0000 (13:16 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 30 Mar 2026 11:47:32 +0000 (13:47 +0200)
ucontext.h should be an UAPI header as it is used for the kernel's
signal handling interface.

Move the header to the uapi/ directory.

While at it, also add some necessary includes to the new header.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/20260314-uapi-ucontext-m68k-v1-1-1b8b0e082b79@weissschuh.net
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/uapi/asm/ucontext.h [moved from arch/m68k/include/asm/ucontext.h with 82% similarity]

similarity index 82%
rename from arch/m68k/include/asm/ucontext.h
rename to arch/m68k/include/uapi/asm/ucontext.h
index 1523a8e5ff224fbaf0b7e037c480fd17cf27b83c..ffac691604b4233029a28a3c719f92b9d5075f50 100644 (file)
@@ -1,7 +1,10 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 #ifndef _M68K_UCONTEXT_H
 #define _M68K_UCONTEXT_H
 
+#include <asm/sigcontext.h>
+#include <asm/signal.h>
+
 typedef int greg_t;
 #define NGREG 18
 typedef greg_t gregset_t[NGREG];