Re: [PATCH] m68k: uapi: Add ucontext.h
From: Geert Uytterhoeven
Date: Mon Mar 16 2026 - 04:28:52 EST
CC andreas
On Sat, 14 Mar 2026 at 13:16, Thomas Weißschuh <linux@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx>
> ---
> 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@xxxxxxxxxxxxxx>