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: 12065 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0F33623F6D for ; Tue, 9 Oct 2012 15:23:31 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 97C8DA18CE4 for ; Tue, 9 Oct 2012 15:23:30 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so11480943iej.11 for ; Tue, 09 Oct 2012 08:23:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=LmJ7mZxaCZiFHqaYTFUItZz7Y85NDq8uUzMjAgrckQE=; b=ICBYjXa2DIRT48RTGXEBUy+9b8zAh3cPPa6gCfKDSNBJdmm94xi5srmV2bPv+CTlJ1 iUQNd1hWnWjAhkJvcTpOzgL+w3JEER0DYQvp5a6khWfCzayy4rMBvC0TNevjkBdBzC9V peBfNolQrQFIDEaJNItvU7WdzKUczmF9gJdbjp/ezg00wrZsnkKmhghNb6Xy06QUTeod zb6WbzaZhOc2hWTCvD8c1lmvZEJvb/jBRi5gL72j1i+MshZ2l0Be20mLEVO3CO1oDDrf CNtZk4B3i5pIyMCzfjyQ9NsAbcWCo1ZFP5xrXPcfOcOiWLRh2dwB3+eE7ppTQGrOcwdw z26g== Received: by 10.50.152.137 with SMTP id uy9mr2020640igb.62.1349796209821; Tue, 09 Oct 2012 08:23:29 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp73050igt; Tue, 9 Oct 2012 08:23:28 -0700 (PDT) Received: by 10.181.13.208 with SMTP id fa16mr5488696wid.11.1349796207756; Tue, 09 Oct 2012 08:23:27 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.17.9]) by mx.google.com with ESMTPS id p3si18976984wed.93.2012.10.09.08.23.26 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 09 Oct 2012 08:23:27 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.17.9 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.17.9; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.17.9 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de 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 Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Magnus Damm , Linus Walleij , "Rafael J. Wysocki" , Thomas Gleixner 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-Gm-Message-State: ALoCoQnVulH6siVHOWGkIpW/zlHNDHq2SWXxvthwagZxxMzWb7lDgOfbV4HHaBDWd87xDvT0cL4a 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 --- 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) {