Skip to contentSkip to conversation

xtensa: uapi: Reuse asm-generic ucontext.h

PATCH New Max Filippov 1 participant 1 message Mar 14 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore

Max Filippov

author maintainer
#0 lore raw

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

From: Thomas Weißschuh <[email protected]>

Drop the custom non-uapi definition which is the same as the generic uapi one.

Message-ID: <[email protected]>

[Max: Move new generic-y line to the arch/xtensa/include/uapi/asm/Kbuild]

---
Changes v1->v2:
- move new generic-y line to the arch/xtensa/include/uapi/asm/Kbuild

 arch/xtensa/include/asm/ucontext.h  | 22 ----------------------
 arch/xtensa/include/uapi/asm/Kbuild |  1 +
 2 files changed, 1 insertion(+), 22 deletions(-)
 delete mode 100644 arch/xtensa/include/asm/ucontext.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 */
arch/xtensa/include/uapi/asm/Kbuild +1 -0
index b97c552db3c5..da95c5a0301f 100644
@@ -1,2 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0
 generated-y += unistd_32.h
+generic-y += ucontext.h
Signature · 1 line
2.47.3