[PATCH] arch/ppc/syslib/open_pic2.c ENODEV undeclared

From: Olaf Hering
Date: Thu Sep 16 2004 - 12:49:21 EST



2.6.9-rc2-bk2 gives this with my ppc g5 config

arch/ppc/syslib/open_pic2.c: In function `init_openpic2_sysfs':
arch/ppc/syslib/open_pic2.c:694: error: `ENODEV' undeclared (first use in this function)
arch/ppc/syslib/open_pic2.c:694: error: (Each undeclared identifier is reported only once
arch/ppc/syslib/open_pic2.c:694: error: for each function it appears in.)

possible fix below.

Signed-off-by: Olaf Hering <olh@xxxxxxx>

--- ./arch/ppc/syslib/open_pic2.c.orig 2004-09-16 19:25:37.892805000 +0200
+++ ./arch/ppc/syslib/open_pic2.c 2004-09-16 19:35:25.024163478 +0200
@@ -20,6 +20,7 @@
#include <linux/irq.h>
#include <linux/interrupt.h>
#include <linux/sysdev.h>
+#include <linux/errno.h>
#include <asm/ptrace.h>
#include <asm/signal.h>
#include <asm/io.h>

--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG
-
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/