[2.5 patch] #include interrupt.h in epca.c and generic_serial.c

Adrian Bunk (bunk@fs.tum.de)
Fri, 10 Jan 2003 14:46:14 +0100


The patch below #include's interrupt.h in epca.c and generic_serial.c to
fix the compilation for !SMP. The proper fix is to remove cli/sti/...
but until fixes are available I consider it better to have this
workaround included.

cu
Adrian

--- linux-2.5.55/drivers/char/epca.c.old 2003-01-10 14:31:20.000000000 +0100
+++ linux-2.5.55/drivers/char/epca.c 2003-01-10 14:32:05.000000000 +0100
@@ -40,6 +40,7 @@
#include <linux/tty_flip.h>
#include <linux/slab.h>
#include <linux/ioport.h>
+#include <linux/interrupt.h> /* for cli/sti/... on !SMP */
#include <asm/uaccess.h>
#include <asm/io.h>

--- linux-2.5.55/drivers/char/generic_serial.c.old 2003-01-10 14:32:13.000000000 +0100
+++ linux-2.5.55/drivers/char/generic_serial.c 2003-01-10 14:32:35.000000000 +0100
@@ -25,6 +25,7 @@
#include <linux/serial.h>
#include <linux/mm.h>
#include <linux/generic_serial.h>
+#include <linux/interrupt.h> /* for cli/sti/... on !SMP */
#include <asm/semaphore.h>
#include <asm/uaccess.h>

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