[PATCH 1/3] serial: change irq_lists to use dyn_array
From: Yinghai Lu
Date: Thu Jul 31 2008 - 00:13:42 EST
Signed-off-by: Yinghai Lu <yhlu.kernel@xxxxxxxxx>
---
drivers/serial/8250.c | 5 +++++
1 file changed, 5 insertions(+)
Index: linux-2.6/drivers/serial/8250.c
===================================================================
--- linux-2.6.orig/drivers/serial/8250.c
+++ linux-2.6/drivers/serial/8250.c
@@ -149,7 +149,12 @@ struct irq_info {
struct list_head *head;
};
+#if defined(CONFIG_HAVE_DYN_ARRAY) && !defined(MODULE)
+static struct irq_info *irq_lists;
+DEFINE_DYN_ARRAY(irq_lists, sizeof(struct irq_info), nr_irqs, PAGE_SIZE, NULL);
+#else
static struct irq_info irq_lists[NR_IRQS];
+#endif
/*
* Here we define the default xmit fifo size used for each type of UART.
--
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/