From patchwork Tue Oct 9 15:22:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 1570391 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 4E25140135 for ; Tue, 9 Oct 2012 15:26:00 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TLbel-000511-2T; Tue, 09 Oct 2012 15:23:39 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TLbeb-0004yl-Ej for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2012 15:23:36 +0000 Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0Lbr40-1Tl5680SkG-00juQt; Tue, 09 Oct 2012 17:23:24 +0200 From: Arnd Bergmann To: Russell King Subject: [PATCH 2/9] ARM: export set_irq_flags Date: Tue, 9 Oct 2012 17:22:56 +0200 Message-Id: <1349796183-30648-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1349796183-30648-1-git-send-email-arnd@arndb.de> References: <1349796183-30648-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:UKrqZGtRVZdk5/T2Jj8mdbZvqutraIuxHn5LfXd/PF7 lTZLfT2gN1+VJIijix/uSfsFAOg4jhJbAd+K7Xvh2tAVjHmQlw cu4v2eu+wFc14+Dcu5dYHF+yZoTYOa8uDbnPgSzStH6xod7XvJ CMhA1ggpALihm2RjpbdPNJzj1xtP96LHDtrXPihBCGSrJicEhJ UG7qhgGASpKHrVkZ2dVe9juS8KcabMwv5ZPgpb4taWZ8i+J4xT XyZaQ/qUWjaJKaJBm9bsBKLftvzLYrnsc3rdJjxB3ad4U6k1oO Sb3GRsmqFvAA85nvL4+QJbOzSmW8huodYEApyut0+CxulFVLSJ K2g5aOVpLaS9e7LygwQ1SFPPdbCEcwMYThNOmTttQWLl/GuTLQ nwo0AQbu/SD9A0pjTzDqcPOkot95cmWS+g= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.17.9 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Arnd Bergmann , Linus Walleij , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Magnus Damm , Thomas Gleixner , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The recently added Emma Mobile GPIO driver calls set_irq_flags and irq_set_chip_and_handler for the interrupts it exports and it can be built as a module, which currently fails with ERROR: "set_irq_flags" [drivers/gpio/gpio-em.ko] undefined! We either need to replace the call to set_irq_flags with something else or export that function. This patch does the latter. Signed-off-by: Arnd Bergmann Cc: Magnus Damm Cc: Linus Walleij Cc: Rafael J. Wysocki Cc: Thomas Gleixner Cc: Russell King Acked-by: Linus Walleij --- arch/arm/kernel/irq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 16cedb4..8961650 100644 --- a/arch/arm/kernel/irq.c +++ b/arch/arm/kernel/irq.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -109,6 +110,7 @@ void set_irq_flags(unsigned int irq, unsigned int iflags) /* Order is clear bits in "clr" then set bits in "set" */ irq_modify_status(irq, clr, set & ~clr); } +EXPORT_SYMBOL_GPL(set_irq_flags); void __init init_IRQ(void) {