From c28b59d4779a43e9b7e786c7004cbee8fab1527d Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Tue, 16 Oct 2007 01:26:54 -0700 Subject: [PATCH] uml: remove sysdep/thread.h This patch removes thread.h, which turns out not to be needed any more. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/um/include/sysdep-i386/kernel-offsets.h | 1 - arch/um/include/sysdep-i386/sigcontext.h | 3 ++- arch/um/include/sysdep-i386/thread.h | 8 -------- arch/um/include/sysdep-x86_64/thread.h | 6 ------ arch/um/sys-i386/ptrace_user.c | 1 - 5 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 arch/um/include/sysdep-i386/thread.h delete mode 100644 arch/um/include/sysdep-x86_64/thread.h diff --git a/arch/um/include/sysdep-i386/kernel-offsets.h b/arch/um/include/sysdep-i386/kernel-offsets.h index 97ec9d894d..5868526b5e 100644 --- a/arch/um/include/sysdep-i386/kernel-offsets.h +++ b/arch/um/include/sysdep-i386/kernel-offsets.h @@ -17,6 +17,5 @@ void foo(void) { - OFFSET(HOST_TASK_DEBUGREGS, task_struct, thread.arch.debugregs); #include } diff --git a/arch/um/include/sysdep-i386/sigcontext.h b/arch/um/include/sysdep-i386/sigcontext.h index 8658634ca4..a930ce3d48 100644 --- a/arch/um/include/sysdep-i386/sigcontext.h +++ b/arch/um/include/sysdep-i386/sigcontext.h @@ -7,7 +7,8 @@ #define __SYS_SIGCONTEXT_I386_H #include "uml-config.h" -#include +#include "skas.h" +#include "sysdep/sc.h" #define IP_RESTART_SYSCALL(ip) ((ip) -= 2) diff --git a/arch/um/include/sysdep-i386/thread.h b/arch/um/include/sysdep-i386/thread.h deleted file mode 100644 index 0cf7bf6e9e..0000000000 --- a/arch/um/include/sysdep-i386/thread.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef __UM_THREAD_H -#define __UM_THREAD_H - -#include - -#define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS])) - -#endif diff --git a/arch/um/include/sysdep-x86_64/thread.h b/arch/um/include/sysdep-x86_64/thread.h deleted file mode 100644 index d73d0b0afd..0000000000 --- a/arch/um/include/sysdep-x86_64/thread.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __UM_THREAD_H -#define __UM_THREAD_H - -#include - -#endif diff --git a/arch/um/sys-i386/ptrace_user.c b/arch/um/sys-i386/ptrace_user.c index b68dd230e6..15e3349961 100644 --- a/arch/um/sys-i386/ptrace_user.c +++ b/arch/um/sys-i386/ptrace_user.c @@ -11,7 +11,6 @@ /* Grr, asm/user.h includes asm/ptrace.h, so has to follow ptrace_user.h */ #include #include "kern_util.h" -#include "sysdep/thread.h" #include "user.h" #include "os.h" #include "uml-config.h" -- 2.39.5