Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753630AbbGBBGw (ORCPT ); Wed, 1 Jul 2015 21:06:52 -0400 Received: from 11.mo5.mail-out.ovh.net ([46.105.47.167]:44777 "EHLO 11.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753064AbbGBBGo (ORCPT ); Wed, 1 Jul 2015 21:06:44 -0400 X-Greylist: delayed 8399 seconds by postgrey-1.27 at vger.kernel.org; Wed, 01 Jul 2015 21:06:43 EDT From: Joel Porquet To: joel@porquet.org Cc: vgupta@synopsys.com, linux@arm.linux.org.uk, kgene@kernel.org, k.kozlowski@samsung.com, shawn.guo@linaro.org, kernel@pengutronix.de, tony@atomide.com, monstr@monstr.eu, cernekee@gmail.com, f.fainelli@gmail.com, ralf@linux-mips.org, tglx@linutronix.de, jason@lakedaemon.net, swarren@wwwdotorg.org, lee@kernel.org, shc_work@mail.ru, baruch@tkos.co.il, matthias.bgg@gmail.com, baohua@kernel.org, maxime.ripard@free-electrons.com, thierry.reding@gmail.com, gnurou@gmail.com, chris@zankel.net, jcmvbkbc@gmail.com, soren.brinkmann@xilinx.com, linux-kernel@vger.kernel.org Subject: [PATCH 00/48] Make the IRQCHIP_DECLARE macro globally accessible Date: Wed, 1 Jul 2015 18:32:32 -0400 Message-Id: <1435790000-15720-1-git-send-email-joel@porquet.org> X-Mailer: git-send-email 2.4.5 X-Ovh-Tracer-Id: 7693555540096151665 X-Ovh-Remote: 190.181.39.143 (static-190-181-39-143.acelerate.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 15 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekvddrfedvucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucgoteeftdduqddtudculdduhedm X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 15 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekvddrfedvucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucgoteeftdduqddtudculdduhedm Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7271 Lines: 156 At the moment the IRQCHIP_DECLARE macro is only declared locally in 'drivers/irqchip/irqchip.h'. That prevents from using it directly in arch/* directories whenever irqchip drivers only exist there, which happens in a few cases (e.g. arc, arm, microblaze and mips). This patch makes the macro to be globally defined, in include/linux/irqchip.h, and thus usable for arch-specific declarations of irqchip drivers. In this way, it is very similar to what clocksource does (ie CLOCKSOURCE_OF_DECLARE is defined in include/linux/clocksource.h). I split up everything into patches to make the integration easier. Please let me know if it's not, and in such case how to make it better. For now, patch 01 of this series transfers the declaration of the macro IRQCHIP_DECLARE to the global header 'include/linux/irqchip.h'. The following patches, from 02 to 47, modify all the irqchip drivers that use IRQCHIP_DECLARE, one by one. And finally, the last patch 48 removes the private and now useless header 'drivers/irqchip/irqchip.h'. Joel Joel Porquet (48): irqchip: move IRQCHIP_DECLARE macro to include/linux/irqchip.h irqchip:exynos-combiner: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:armada-370-xp: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:atmel-aic5: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:atmel-aic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:bcm2835: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:bcm7038-l1: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:bcm7120-l2: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:brcmstb-l2: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:clps711x: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:crossbar: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:digicolor: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:dw-apb-ictl: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:gic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:gic-v3: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:gic-v3-its: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:hip04: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:keystone: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:mips-gic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:mmp: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:moxart: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:mtk-sysirq: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:mxs: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:nvic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:omap-intc: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:or1k-pic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:orion: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:s3c24xx: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:sirfsoc: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:sun4i: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:sunxi-nmi: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:tb10x: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:tegra: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:versatile-fpga: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:vf610-mscm-ir: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:vic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:vt8500: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:xtensa-mx: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:xtensa-pic: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:zevio: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h irqchip:spear-shirq: IRQCHIP_DECLARE macro moved to include/linux/irqchip.h arc:irqchip: IRQCHIP_DECLARE macro is now accessible microblaze:irqchip: IRQCHIP_DECLARE macro is now accessible mips:irqchip: IRQCHIP_DECLARE macro is now accessible arm:exynos:irqchip: IRQCHIP_DECLARE macro is now accessible arm:imx:irqchip: IRQCHIP_DECLARE macro is now accessible arm:omap2:irqchip: IRQCHIP_DECLARE macro is now accessible irqchip: remove header drivers/irqchip/irqchip.h arch/arc/kernel/irq.c | 1 - arch/arm/mach-exynos/suspend.c | 3 ++- arch/arm/mach-imx/gpc.c | 7 ++----- arch/arm/mach-omap2/omap-wakeupgen.c | 6 +----- arch/microblaze/kernel/intc.c | 3 +-- arch/mips/bmips/irq.c | 2 +- drivers/irqchip/exynos-combiner.c | 3 +-- drivers/irqchip/irq-armada-370-xp.c | 3 +-- drivers/irqchip/irq-atmel-aic.c | 2 +- drivers/irqchip/irq-atmel-aic5.c | 2 +- drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm7038-l1.c | 3 +-- drivers/irqchip/irq-bcm7120-l2.c | 3 +-- drivers/irqchip/irq-brcmstb-l2.c | 2 -- drivers/irqchip/irq-clps711x.c | 3 +-- drivers/irqchip/irq-crossbar.c | 3 +-- drivers/irqchip/irq-digicolor.c | 3 +-- drivers/irqchip/irq-dw-apb-ictl.c | 3 +-- drivers/irqchip/irq-gic-v3-its.c | 3 +-- drivers/irqchip/irq-gic-v3.c | 2 +- drivers/irqchip/irq-gic.c | 2 +- drivers/irqchip/irq-hip04.c | 2 +- drivers/irqchip/irq-keystone.c | 3 +-- drivers/irqchip/irq-mips-gic.c | 3 +-- drivers/irqchip/irq-mmp.c | 3 +-- drivers/irqchip/irq-moxart.c | 3 +-- drivers/irqchip/irq-mtk-sysirq.c | 3 +-- drivers/irqchip/irq-mxs.c | 3 +-- drivers/irqchip/irq-nvic.c | 3 +-- drivers/irqchip/irq-omap-intc.c | 3 +-- drivers/irqchip/irq-or1k-pic.c | 3 +-- drivers/irqchip/irq-orion.c | 3 +-- drivers/irqchip/irq-s3c24xx.c | 3 +-- drivers/irqchip/irq-sirfsoc.c | 2 +- drivers/irqchip/irq-sun4i.c | 3 +-- drivers/irqchip/irq-sunxi-nmi.c | 2 +- drivers/irqchip/irq-tb10x.c | 2 +- drivers/irqchip/irq-tegra.c | 3 +-- drivers/irqchip/irq-versatile-fpga.c | 3 +-- drivers/irqchip/irq-vf610-mscm-ir.c | 3 +-- drivers/irqchip/irq-vic.c | 3 +-- drivers/irqchip/irq-vt8500.c | 3 +-- drivers/irqchip/irq-xtensa-mx.c | 3 +-- drivers/irqchip/irq-xtensa-pic.c | 3 +-- drivers/irqchip/irq-zevio.c | 3 +-- drivers/irqchip/irqchip.h | 28 ---------------------------- drivers/irqchip/spear-shirq.c | 3 +-- include/linux/irqchip.h | 14 ++++++++++++++ 48 files changed, 60 insertions(+), 115 deletions(-) delete mode 100644 drivers/irqchip/irqchip.h -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/