arch/m68k/include/{ => uapi}/asm/ucontext.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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>
---
arch/m68k/include/{ => uapi}/asm/ucontext.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/m68k/include/asm/ucontext.h b/arch/m68k/include/uapi/asm/ucontext.h
similarity index 82%
rename from arch/m68k/include/asm/ucontext.h
rename to arch/m68k/include/uapi/asm/ucontext.h
index 1523a8e5ff22..ffac691604b4 100644
--- a/arch/m68k/include/asm/ucontext.h
+++ b/arch/m68k/include/uapi/asm/ucontext.h
@@ -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];
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260314-uapi-ucontext-m68k-2d76bf79e949
Best regards,
--
Thomas Weißschuh <linux@weissschuh.net>
On Sat, 14 Mar 2026 at 13:16, Thomas Weißschuh <linux@weissschuh.net> wrote:
> 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>
i.e. will queue in the m68k tree for v7.1.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
CC andreas
On Sat, 14 Mar 2026 at 13:16, Thomas Weißschuh <linux@weissschuh.net> wrote:
> 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>
> ---
> arch/m68k/include/{ => uapi}/asm/ucontext.h | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/m68k/include/asm/ucontext.h b/arch/m68k/include/uapi/asm/ucontext.h
> similarity index 82%
> rename from arch/m68k/include/asm/ucontext.h
> rename to arch/m68k/include/uapi/asm/ucontext.h
> index 1523a8e5ff22..ffac691604b4 100644
> --- a/arch/m68k/include/asm/ucontext.h
> +++ b/arch/m68k/include/uapi/asm/ucontext.h
> @@ -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];
>
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20260314-uapi-ucontext-m68k-2d76bf79e949
>
> Best regards,
> --
> Thomas Weißschuh <linux@weissschuh.net>
© 2016 - 2026 Red Hat, Inc.