[Compile Regression in 2.4.25-pre8][PATCH 18/42]

Kronos
2004-02-02T19:50:51Z

Fix compilation when compiled as module.

diff -Nru -X dontdiff linux-2.4-vanilla/include/asm-i386/hc_sl811-hw.h linux-2.4/include/asm-i386/hc_sl811-hw.h
--- linux-2.4-vanilla/include/asm-i386/hc_sl811-hw.h Tue Nov 11 17:51:39 2003
+++ linux-2.4/include/asm-i386/hc_sl811-hw.h Sat Jan 31 17:47:43 2004
@@ -20,11 +20,11 @@

*/

-#ifdef MODULE
-
#define MAX_CONTROLERS 2 /* Max number of SL811 controllers per module */
static int io_base = 0x220;
static int irq = 12;
+
+#ifdef MODULE

MODULE_PARM(io_base,"i");
MODULE_PARM_DESC(io_base,"sl811 base address 0x220");

--
Reply-To: kronos@kronoz.cjb.net
Home: http://kronoz.cjb.net
I went to God just to see
And I was looking at me
Saw heaven and hell were lies
When I'm God everyone dies