From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: [patch 47/47] genirq: Remove the old sparse irq allocator function Date: Thu, 30 Sep 2010 23:18:32 -0000 Message-ID: <20100930221743.113364752@linutronix.de> References: <20100930221351.682772535@linutronix.de> Return-path: Content-Disposition: inline; filename=genirq-remove-craplocator.patch Sender: linux-kernel-owner@vger.kernel.org To: LKML Cc: linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , x86@kernel.org, Peter Zijlstra , Benjamin Herrenschmidt , Paul Mundt , Russell King , David Woodhouse , Jesse Barnes , Yinghai Lu , Grant Likely , "Eric W. Biederman" List-Id: linux-arch.vger.kernel.org Last user is gone. Remove it. Signed-off-by: Thomas Gleixner --- include/linux/irq.h | 2 -- kernel/irq/irqdesc.c | 9 --------- 2 files changed, 11 deletions(-) Index: linux-2.6-tip/include/linux/irq.h =================================================================== --- linux-2.6-tip.orig/include/linux/irq.h +++ linux-2.6-tip/include/linux/irq.h @@ -261,8 +261,6 @@ struct irq_desc { extern struct irq_desc irq_desc[NR_IRQS]; #endif -extern struct irq_desc *irq_to_desc_alloc_node(unsigned int irq, int node); - int irq_alloc_descs(unsigned int irq, unsigned int from, unsigned int cnt, int node); static inline int irq_alloc_desc(int node) Index: linux-2.6-tip/kernel/irq/irqdesc.c =================================================================== --- linux-2.6-tip.orig/kernel/irq/irqdesc.c +++ linux-2.6-tip/kernel/irq/irqdesc.c @@ -192,15 +192,6 @@ err: return -ENOMEM; } -struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node) -{ - int res = irq_alloc_descs(irq, irq, 1, node); - - if (res == -EEXIST || res == irq) - return irq_to_desc(irq); - return NULL; -} - int __init early_irq_init(void) { int i, initcnt, node = first_online_node; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www.tglx.de ([62.245.132.106]:43628 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757012Ab0I3XSx (ORCPT ); Thu, 30 Sep 2010 19:18:53 -0400 Message-ID: <20100930221743.113364752@linutronix.de> Date: Thu, 30 Sep 2010 23:18:32 -0000 From: Thomas Gleixner Subject: [patch 47/47] genirq: Remove the old sparse irq allocator function References: <20100930221351.682772535@linutronix.de> Content-Disposition: inline; filename=genirq-remove-craplocator.patch Sender: linux-arch-owner@vger.kernel.org List-ID: To: LKML Cc: linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , x86@kernel.org, Peter Zijlstra , Benjamin Herrenschmidt , Paul Mundt , Russell King , David Woodhouse , Jesse Barnes , Yinghai Lu , Grant Likely , "Eric W. Biederman" Message-ID: <20100930231832.KPJD0KhXRS0-HDMlakIeDkpHPQI1uvgLzfoyw70NAjg@z> Last user is gone. Remove it. Signed-off-by: Thomas Gleixner --- include/linux/irq.h | 2 -- kernel/irq/irqdesc.c | 9 --------- 2 files changed, 11 deletions(-) Index: linux-2.6-tip/include/linux/irq.h =================================================================== --- linux-2.6-tip.orig/include/linux/irq.h +++ linux-2.6-tip/include/linux/irq.h @@ -261,8 +261,6 @@ struct irq_desc { extern struct irq_desc irq_desc[NR_IRQS]; #endif -extern struct irq_desc *irq_to_desc_alloc_node(unsigned int irq, int node); - int irq_alloc_descs(unsigned int irq, unsigned int from, unsigned int cnt, int node); static inline int irq_alloc_desc(int node) Index: linux-2.6-tip/kernel/irq/irqdesc.c =================================================================== --- linux-2.6-tip.orig/kernel/irq/irqdesc.c +++ linux-2.6-tip/kernel/irq/irqdesc.c @@ -192,15 +192,6 @@ err: return -ENOMEM; } -struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node) -{ - int res = irq_alloc_descs(irq, irq, 1, node); - - if (res == -EEXIST || res == irq) - return irq_to_desc(irq); - return NULL; -} - int __init early_irq_init(void) { int i, initcnt, node = first_online_node;