[-mm patch] include/linux/ptrace.h must #include <linux/errno.h>

From: Adrian Bunk
Date: Mon Feb 19 2007 - 19:09:30 EST


On Thu, Feb 15, 2007 at 05:14:08AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.20-rc6-mm3:
>...
> +utrace-utrace-ptrace-compat.patch
>...
> utrace tree
>...


This patch fixes the following compile error:

<-- snip -->

...
CC drivers/net/wan/lmc/lmc_media.o
In file included from /home/bunk/linux/kernel-2.6/linux-2.6.20-mm2/drivers/net/wan/lmc/lmc_media.c:6:
/home/bunk/linux/kernel-2.6/linux-2.6.20-mm2/include/linux/ptrace.h: In function 'ptrace_do_wait':
/home/bunk/linux/kernel-2.6/linux-2.6.20-mm2/include/linux/ptrace.h:238: error: 'ECHILD' undeclared (first use in this function)
/home/bunk/linux/kernel-2.6/linux-2.6.20-mm2/include/linux/ptrace.h:238: error: (Each undeclared identifier is reported only once
/home/bunk/linux/kernel-2.6/linux-2.6.20-mm2/include/linux/ptrace.h:238: error: for each function it appears in.)
make[5]: *** [drivers/net/wan/lmc/lmc_media.o] Error 1

<-- snip -->


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---
--- linux-2.6.20-mm2/include/linux/ptrace.h.old 2007-02-19 22:59:04.000000000 +0100
+++ linux-2.6.20-mm2/include/linux/ptrace.h 2007-02-19 22:59:24.000000000 +0100
@@ -51,6 +51,7 @@
#ifdef __KERNEL__
#include <linux/compiler.h>
#include <linux/types.h>
+#include <linux/errno.h>
struct task_struct;
struct siginfo;
struct rusage;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/