From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932554AbbIYQKc (ORCPT ); Fri, 25 Sep 2015 12:10:32 -0400 Received: from down.free-electrons.com ([37.187.137.238]:34825 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932524AbbIYQK3 (ORCPT ); Fri, 25 Sep 2015 12:10:29 -0400 From: Gregory CLEMENT To: Thomas Gleixner , Jason Cooper , linux-kernel@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, Thomas Petazzoni Cc: Andrew Lunn , Sebastian Hesselbarth , Gregory CLEMENT , Lior Amsalem , Tawfik Bayouk , Nadav Haklai , Ezequiel Garcia , Maxime Ripard , Boris BREZILLON , Willy Tarreau , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/7] irq: Export per-cpu irq allocation and de-allocation functions Date: Fri, 25 Sep 2015 18:09:33 +0200 Message-Id: <1443197378-30717-3-git-send-email-gregory.clement@free-electrons.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1443197378-30717-1-git-send-email-gregory.clement@free-electrons.com> References: <1443197378-30717-1-git-send-email-gregory.clement@free-electrons.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard Some drivers might use the per-cpu interrupts and still might be built as a module. Export request_percpu_irq an free_percpu_irq to these user, which also make it consistent with enable/disable_percpu_irq that were exported. Reported-by: Willy Tarreau Signed-off-by: Maxime Ripard Signed-off-by: Gregory CLEMENT --- kernel/irq/manage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index dc8a80ecfc4a..89440d2f6c07 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1761,6 +1761,7 @@ void free_percpu_irq(unsigned int irq, void __percpu *dev_id) kfree(__free_percpu_irq(irq, dev_id)); chip_bus_sync_unlock(desc); } +EXPORT_SYMBOL_GPL(free_percpu_irq); /** * setup_percpu_irq - setup a per-cpu interrupt @@ -1832,6 +1833,7 @@ int request_percpu_irq(unsigned int irq, irq_handler_t handler, return retval; } +EXPORT_SYMBOL_GPL(request_percpu_irq); /** * irq_get_irqchip_state - returns the irqchip state of a interrupt. -- 2.1.0