Skip to contentSkip to conversation

xtensa: uapi: Reuse asm-generic ucontext.h

PATCH In review Thomas Weißschuh 2 participants 2 messages Mar 14 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtensa: uapi: Reuse asm-generic ucontext.h

Drop the custom definition which is the same as the generic one.

---
 arch/xtensa/include/asm/Kbuild     |  1 +
 arch/xtensa/include/asm/ucontext.h | 22 ----------------------
 2 files changed, 1 insertion(+), 22 deletions(-)
arch/xtensa/include/asm/Kbuild +1 -0
index 13fe45dea296..cfb4c5a22e91 100644
@@ -6,5 +6,6 @@ generic-y += mcs_spinlock.h
 generic-y += parport.h
 generic-y += qrwlock.h
 generic-y += qspinlock.h
+generic-y += ucontext.h
 generic-y += user.h
 generic-y += text-patching.h
arch/xtensa/include/asm/ucontext.h deleted +0 -22
deleted file mode 100644
index 94c94ed3e00a..000000000000
@@ -1,22 +0,0 @@
-/*
- * include/asm-xtensa/ucontext.h
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file "COPYING" in the main directory of this archive
- * for more details.
- *
- * Copyright (C) 2001 - 2005 Tensilica Inc.
- */
-
-#ifndef _XTENSA_UCONTEXT_H
-#define _XTENSA_UCONTEXT_H
-
-struct ucontext {
-	unsigned long	  uc_flags;
-	struct ucontext  *uc_link;
-	stack_t		  uc_stack;
-	struct sigcontext uc_mcontext;
-	sigset_t	  uc_sigmask;	/* mask last for extensibility */
-};
-
-#endif /* _XTENSA_UCONTEXT_H */

---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260314-uapi-ucontext-xtensa-9f1ae76f4c36

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>
maintainer
#1 lore raw
Quoted 8 lines · Thomas Weißschuh

Drop the custom definition which is the same as the generic one.

---
 arch/xtensa/include/asm/Kbuild     |  1 +
 arch/xtensa/include/asm/ucontext.h | 22 ----------------------
 2 files changed, 1 insertion(+), 22 deletions(-)

With this change the build fails, because there's no ucontext.h in the include/asm-generic, only in the include/uapi/asm-generic, but you're changing non-uapi part of the xtensa/include.
I've fixed this up and applied the fixed version to my xtensa tree.

Signature · 2 lines
Thanks.
-- Max