From: Ralf Baechle Date: Wed, 5 Apr 2006 08:45:48 +0000 (+0100) Subject: [MIPS] kgdb: Let gcc compute the array size itself. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8f6539d55919b8e013583df768312a2503f4125d;p=linux-beck.git [MIPS] kgdb: Let gcc compute the array size itself. This is the same method as used in the serial driver. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mips-boards/generic/gdb_hook.c b/arch/mips/mips-boards/generic/gdb_hook.c index 91a2ccbe3730..6a1854de4579 100644 --- a/arch/mips/mips-boards/generic/gdb_hook.c +++ b/arch/mips/mips-boards/generic/gdb_hook.c @@ -25,7 +25,7 @@ #include #include -static struct serial_state rs_table[RS_TABLE_SIZE] = { +static struct serial_state rs_table[] = { SERIAL_PORT_DFNS /* Defined in serial.h */ };