From patchwork Wed May 8 13:20:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Hecht X-Patchwork-Id: 2538981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 21E913FE1F for ; Wed, 8 May 2013 13:20:35 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ua4IG-000693-MW; Wed, 08 May 2013 13:20:28 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ua4ID-0000Zb-Uu; Wed, 08 May 2013 13:20:25 +0000 Received: from mail-ee0-f53.google.com ([74.125.83.53]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ua4IA-0000ZD-Pf for linux-arm-kernel@lists.infradead.org; Wed, 08 May 2013 13:20:23 +0000 Received: by mail-ee0-f53.google.com with SMTP id d49so979939eek.40 for ; Wed, 08 May 2013 06:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=F0MajEnCUGR7xXNsegYWD6yjHaUiolf0+N2gGO1Ps3Y=; b=z2pLHc29jG4FqzGZV12W3lLjdrrPN1eIbUZIISl0L8GmBbpLepgikyRHeKATTpto0P 41iaQOC74zTfyGcKhpiDHOEtGOuZBplun5XX7y+nq7Cs+DRVdHJ73jwo9SF8/vUHr800 clZJb+7VUZLsYJAYoOZfFdl6sySAIyPcUB36sRb9MOlCy3hJXDtEkT1AN/l3F21Rumgx n1pmlH7dw+TCThlRMMHT0ST+8HKZOyvwktSuP5dtcDnDkN1khGR6RoOyt1vsr4sNOGkN 5ffmbCCodVofPGogYPs/407XQPmrn/wqmGdOTPM8rEhLfdkqiH5QDBLVtZ6UWuSh344m dsnA== X-Received: by 10.14.172.197 with SMTP id t45mr16992876eel.37.1368019200085; Wed, 08 May 2013 06:20:00 -0700 (PDT) Received: from localhost.localdomain (p4FD26E72.dip0.t-ipconnect.de. [79.210.110.114]) by mx.google.com with ESMTPSA id l6sm45316433eem.9.2013.05.08.06.19.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 May 2013 06:19:59 -0700 (PDT) From: Bastian Hecht To: linux-sh@vger.kernel.org Subject: [PATCH] irqchip: Add irqchip_init dummy function Date: Wed, 8 May 2013 15:20:04 +0200 Message-Id: <1368019204-24448-1-git-send-email-hechtb+renesas@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130508_092022_959402_F6794433 X-CRM114-Status: GOOD ( 10.73 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (hechtb[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.83.53 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Thomas Petazzoni , Arnd Bergmann , Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org We add an empty irqchip_init dummy function for cases in which CONFIG_IRQCHIP is not used. In these cases irqchip.c is not compiled, but a funtion call may still be present in architecture code, that in runtime doesn't get hit. E.g. this is needed in the arch/arm/mach-shmobile/intc-r8a7740.c interrupt setup code where OF use and non OF us is both handled in one file. Signed-off-by: Bastian Hecht --- include/linux/irqchip.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/irqchip.h b/include/linux/irqchip.h index e0006f1..78527ba 100644 --- a/include/linux/irqchip.h +++ b/include/linux/irqchip.h @@ -11,6 +11,10 @@ #ifndef _LINUX_IRQCHIP_H #define _LINUX_IRQCHIP_H +#ifdef CONFIG_IRQCHIP void irqchip_init(void); +#else +void irqchip_init(void) {}; +#endif #endif