Skip to contentSkip to conversation

UML - Remove sysdep/thread.h

PATCH New Jeff Dike 1 participant 1 message Aug 14, 2007

Subsystems (2)
lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 2/14 UML - Remove sysdep/thread.h

This patch removes thread.h, which turns out not to be needed any more.

--

 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(-)
arch/um/include/sysdep-i386/sigcontext.h +2 -1
Index: linux-2.6.22/arch/um/include/sysdep-i386/sigcontext.h
===================================================================
@@ -7,7 +7,8 @@
 #define __SYS_SIGCONTEXT_I386_H
 
 #include "uml-config.h"
-#include <sysdep/sc.h>
+#include "skas.h"
+#include "sysdep/sc.h"
 
 #define IP_RESTART_SYSCALL(ip) ((ip) -= 2)
 
arch/um/include/sysdep-i386/kernel-offsets.h +0 -1
Index: linux-2.6.22/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 <common-offsets.h>
 }
arch/um/include/sysdep-i386/thread.h deleted +0 -8
Index: linux-2.6.22/arch/um/include/sysdep-i386/thread.h
===================================================================
@@ -1,8 +0,0 @@
-#ifndef __UM_THREAD_H
-#define __UM_THREAD_H
-
-#include <kern_constants.h>
-
-#define TASK_DEBUGREGS(task) ((unsigned long *) &(((char *) (task))[HOST_TASK_DEBUGREGS]))
-
-#endif
arch/um/sys-i386/ptrace_user.c +0 -1
Index: linux-2.6.22/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 <asm/user.h>
 #include "kern_util.h"
-#include "sysdep/thread.h"
 #include "user.h"
 #include "os.h"
 #include "uml-config.h"
arch/um/include/sysdep-x86_64/thread.h deleted +0 -6
Index: linux-2.6.22/arch/um/include/sysdep-x86_64/thread.h
===================================================================
@@ -1,6 +0,0 @@
-#ifndef __UM_THREAD_H
-#define __UM_THREAD_H
-
-#include <kern_constants.h>
-
-#endif

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel