um: kill shared/task.h and HOST_TASK_REGS
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 18 Aug 2011 19:07:39 +0000 (20:07 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 2 Nov 2011 13:15:08 +0000 (14:15 +0100)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/shared/common-offsets.h
arch/um/include/shared/task.h [deleted file]
arch/x86/um/bugs_32.c

index 72009c7e3210a036cbbef0b688bd08718eacbb59..d7fe563aa7e78429aa6a10816974ce40c4219f93 100644 (file)
@@ -2,7 +2,6 @@
 
 DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
 
-OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
 OFFSET(HOST_TASK_PID, task_struct, pid);
 
 DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
diff --git a/arch/um/include/shared/task.h b/arch/um/include/shared/task.h
deleted file mode 100644 (file)
index 3db6b58..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef __TASK_H
-#define __TASK_H
-
-#include <generated/asm-offsets.h>
-
-#define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS]))
-#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
-
-#endif
index 7058e1fa903b439fb657b872205bfa2095e24247..a1fba5fb9dbe0630ddbf42c53f6221b6bb2b6d31 100644 (file)
@@ -6,13 +6,15 @@
 #include <signal.h>
 #include "kern_util.h"
 #include "longjmp.h"
-#include "task.h"
 #include "sysdep/ptrace.h"
+#include <generated/asm-offsets.h>
 
 /* Set during early boot */
 static int host_has_cmov = 1;
 static jmp_buf cmov_test_return;
 
+#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
+
 static void cmov_sigill_test_handler(int sig)
 {
        host_has_cmov = 0;