Skip to contentSkip to conversation

Linux 2.4.31-pre2

DISCUSSION Willy Tarreau 1 participant 1 message May 16, 2005

lore
Share & tools
lore
#0 lore raw

Hi Marcelo,

moxa does not compile anymore in 2.4.31-pre2, because a variable is used before being declared. Since I fixed it on the fly in -hf, I thought that I had reported it, but I don't find any trace of it, so I might have dreamed...

Here's the fix anyway.
Regards,
Willy

drivers/char/moxa.c +1 -1
diff -urN linux-2.4.31-pre2/drivers/char/moxa.c linux-2.4.31-pre2-moxa-fix/drivers/char/moxa.c
@@ -294,6 +294,7 @@
 static int moxa_get_serial_info(struct moxa_str *, struct serial_struct *);
 static int moxa_set_serial_info(struct moxa_str *, struct serial_struct *);
 static void MoxaSetFifo(int port, int enable);
+static unsigned long moxaIntPend[MAX_BOARDS];
 
 #ifdef MODULE
 int init_module(void)
@@ -1579,7 +1580,6 @@
 
 static unsigned char moxaBuff[10240];
 static unsigned long moxaIntNdx[MAX_BOARDS];
-static unsigned long moxaIntPend[MAX_BOARDS];
 static unsigned long moxaIntTable[MAX_BOARDS];
 static char moxaChkPort[MAX_PORTS];
 static char moxaLineCtrl[MAX_PORTS];