Skip to contentSkip to conversation

MIPS: Add missing include in arch/mips/include/asm/ptrace.h.

PATCH In review David Daney 3 participants 3 messages Oct 10, 2008 – Oct 11, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Add missing include in arch/mips/include/asm/ptrace.h.

Add missing include in arch/mips/include/asm/ptrace.h.

Recent reorganization seems to have lost this include. You cannot build without it.

---
arch/mips/include/asm/ptrace.h | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)
arch/mips/include/asm/ptrace.h +0 -0
index 7fe9812..36872b8 100644
@@ -120,6 +120,8 @@ struct pt_watch_regs {
 

#include <linux/compiler.h>
#include <linux/linkage.h>
+#include <linux/sched.h>
+
#include <asm/isadep.h>

extern int ptrace_getregs(struct task_struct *child, __s64 __user *data);

#1 lore raw

arch/mips/include/asm/ptrace.h struct pt_watch_regs { · line 121

Quoted 7 lines · David Daney
arch/mips/include/asm/ptrace.h +0 -0
index 7fe9812..36872b8 100644
@@ -120,6 +120,8 @@ struct pt_watch_regs {
 
 #include <linux/compiler.h>

^

arch/mips/include/asm/ptrace.h struct pt_watch_regs { · line 122

Quoted 1 line
arch/mips/include/asm/ptrace.h +0 -0
 #include <linux/linkage.h>

^

arch/mips/include/asm/ptrace.h struct pt_watch_regs { · line 125

Quoted 3 lines
arch/mips/include/asm/ptrace.h +2 -0
+#include <linux/sched.h>
+
 #include <asm/isadep.h>

^

Quoted 1 line

^

Quoted 1 line

extern int ptrace_getregs(struct task_struct *child, __s64 __user *data);

^

Oops, you mailer removed some spaces again...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#2 lore raw
In reply to David Daney
Quoted 16 lines · David Daney

Add missing include in arch/mips/include/asm/ptrace.h.

Recent reorganization seems to have lost this include. You cannot build without it.

---
arch/mips/include/asm/ptrace.h | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)
arch/mips/include/asm/ptrace.h +0 -0
index 7fe9812..36872b8 100644

arch/mips/include/asm/ptrace.h struct pt_watch_regs { · line 123

Quoted 4 lines
arch/mips/include/asm/ptrace.h +1 -0
@@ -120,6 +120,8 @@ struct pt_watch_regs {
 
 #include <linux/compiler.h>
 #include <linux/linkage.h>
+#include <linux/sched.h>

Sched.h is one of those include files that drag in way to many other header files. So I went for a forward declaration of struct task_struct instead.

Thanks,

Ralf