Skip to contentSkip to conversation

Subject: [PATCH 41/91] um: merge skas_ptrace.h 32/64bit variants

PATCH Al Viro 1 participant 1 message Aug 18, 2011 User-mode Linux (UML)

lore
Share & tools
lore

Al Viro

author
#0 lore raw
---
 arch/um/sys-x86/shared/sysdep/skas_ptrace.h    |   25 ++++++++++++++++++++---
 arch/um/sys-x86/shared/sysdep/skas_ptrace_32.h |   22 ---------------------
 arch/um/sys-x86/shared/sysdep/skas_ptrace_64.h |   22 ---------------------
 3 files changed, 21 insertions(+), 48 deletions(-)
 delete mode 100644 arch/um/sys-x86/shared/sysdep/skas_ptrace_32.h
 delete mode 100644 arch/um/sys-x86/shared/sysdep/skas_ptrace_64.h
arch/um/sys-x86/shared/sysdep/skas_ptrace.h +21 -4
index e63b575..453febe 100644
@@ -1,5 +1,22 @@
-#ifdef __i386__
-#include "skas_ptrace_32.h"
-#else
-#include "skas_ptrace_64.h"
+/*
+ * Copyright (C) 2000, 2001, 2002 Jeff Dike ([email protected])
+ * Licensed under the GPL
+ */
+
+#ifndef __SYSDEP_X86_SKAS_PTRACE_H
+#define __SYSDEP_X86_SKAS_PTRACE_H
+
+struct ptrace_faultinfo {
+        int is_write;
+        unsigned long addr;
+};
+
+struct ptrace_ldt {
+        int func;
+        void *ptr;
+        unsigned long bytecount;
+};
+
+#define PTRACE_LDT 54
+
 #endif
arch/um/sys-x86/shared/sysdep/skas_ptrace_32.h deleted +0 -22
deleted file mode 100644
index e27b8a7..0000000
@@ -1,22 +0,0 @@
-/*
- * Copyright (C) 2000, 2001, 2002 Jeff Dike ([email protected])
- * Licensed under the GPL
- */
-
-#ifndef __SYSDEP_I386_SKAS_PTRACE_H
-#define __SYSDEP_I386_SKAS_PTRACE_H
-
-struct ptrace_faultinfo {
-        int is_write;
-        unsigned long addr;
-};
-
-struct ptrace_ldt {
-        int func;
-        void *ptr;
-        unsigned long bytecount;
-};
-
-#define PTRACE_LDT 54
-
-#endif
arch/um/sys-x86/shared/sysdep/skas_ptrace_64.h deleted +0 -22
deleted file mode 100644
index 95db4be7..0000000
@@ -1,22 +0,0 @@
-/*
- * Copyright (C) 2000, 2001, 2002 Jeff Dike ([email protected])
- * Licensed under the GPL
- */
-
-#ifndef __SYSDEP_X86_64_SKAS_PTRACE_H
-#define __SYSDEP_X86_64_SKAS_PTRACE_H
-
-struct ptrace_faultinfo {
-        int is_write;
-        unsigned long addr;
-};
-
-struct ptrace_ldt {
-        int func;
-        void *ptr;
-        unsigned long bytecount;
-};
-
-#define PTRACE_LDT 54
-
-#endif
Signature · 1 line
1.7.2.5