ARM: remove header files included more than once
Subsystems (9)
PATCH 1/1 ARM: remove header files included more than once
checkincludes.pl complains about these:
linux/debugfs.h linux/dma-mapping.h linux/gpio.h linux/sched.h linux/slab.h plat/common.h plat/i2c.h
--- arch/arm/mach-bcmring/dma.c | 1 - arch/arm/mach-ks8695/leds.c | 1 - arch/arm/mach-mmp/aspenite.c | 1 - arch/arm/mach-mmp/tavorevb.c | 1 - arch/arm/mach-msm/board-msm7x30.c | 1 - arch/arm/mach-msm/board-qsd8x50.c | 1 - arch/arm/mach-omap2/board-ldp.c | 1 - arch/arm/mach-omap2/io.c | 1 - arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 1 - arch/arm/mach-pxa/pxa25x.c | 1 - arch/arm/mach-pxa/pxa27x.c | 1 - arch/arm/mach-pxa/saarb.c | 1 - arch/arm/mach-shmobile/board-ag5evm.c | 1 - arch/arm/mach-ux500/board-mop500-u8500uib.c | 1 - arch/arm/plat-omap/clock.c | 1 - arch/arm/plat-samsung/dev-backlight.c | 1 - 16 files changed, 0 insertions(+), 16 deletions(-)
arch/arm/mach-bcmring/dma.c +0 -1
@@ -36,7 +36,6 @@#include <linux/mm.h> #include <linux/pfn.h> #include <linux/atomic.h> -#include <linux/sched.h> #include <mach/dma.h> /* I don't quite understand why dc4 fails when this is set to 1 and DMA is enabled */
arch/arm/mach-ks8695/leds.c +0 -1
@@ -11,7 +11,6 @@#include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> -#include <linux/gpio.h> #include <asm/leds.h> #include <mach/devices.h>
arch/arm/mach-mmp/aspenite.c +0 -1
@@ -17,7 +17,6 @@#include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/interrupt.h> -#include <linux/gpio.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
arch/arm/mach-mmp/tavorevb.c +0 -1
@@ -12,7 +12,6 @@#include <linux/kernel.h> #include <linux/platform_device.h> #include <linux/smc91x.h> -#include <linux/gpio.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
arch/arm/mach-msm/board-msm7x30.c +0 -1
@@ -14,7 +14,6 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ -#include <linux/gpio.h> #include <linux/kernel.h> #include <linux/irq.h> #include <linux/gpio.h>
arch/arm/mach-msm/board-qsd8x50.c +0 -1
@@ -14,7 +14,6 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ -#include <linux/gpio.h> #include <linux/kernel.h> #include <linux/irq.h> #include <linux/gpio.h>
arch/arm/mach-omap2/board-ldp.c +0 -1
@@ -10,7 +10,6 @@* it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#include <linux/gpio.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h>
arch/arm/mach-omap2/io.c +0 -1
@@ -43,7 +43,6 @@#include "clockdomain.h" #include <plat/omap_hwmod.h> #include <plat/multi.h> -#include <plat/common.h> /* * The machine specific code may provide the extra mapping besides the
arch/arm/mach-omap2/omap_hwmod_44xx_data.c +0 -1
@@ -22,7 +22,6 @@#include <plat/omap_hwmod.h> #include <plat/cpu.h> -#include <plat/i2c.h> #include <plat/gpio.h> #include <plat/dma.h> #include <plat/mcspi.h>
arch/arm/mach-pxa/pxa25x.c +0 -1
@@ -24,7 +24,6 @@#include <linux/suspend.h> #include <linux/syscore_ops.h> #include <linux/irq.h> -#include <linux/gpio.h> #include <asm/mach/map.h> #include <asm/suspend.h>
arch/arm/mach-pxa/pxa27x.c +0 -1
@@ -21,7 +21,6 @@#include <linux/io.h> #include <linux/irq.h> #include <linux/i2c/pxa-i2c.h> -#include <linux/gpio.h> #include <asm/mach/map.h> #include <mach/hardware.h>
arch/arm/mach-pxa/saarb.c +0 -1
@@ -15,7 +15,6 @@#include <linux/i2c.h> #include <linux/i2c/pxa-i2c.h> #include <linux/mfd/88pm860x.h> -#include <linux/gpio.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
arch/arm/mach-shmobile/board-ag5evm.c +0 -1
@@ -37,7 +37,6 @@#include <linux/mmc/sh_mobile_sdhi.h> #include <linux/mfd/tmio.h> #include <linux/sh_clk.h> -#include <linux/dma-mapping.h> #include <video/sh_mobile_lcdc.h> #include <video/sh_mipi_dsi.h> #include <sound/sh_fsi.h>
arch/arm/mach-ux500/board-mop500-u8500uib.c +0 -1
@@ -4,7 +4,6 @@* Board data for the U8500 UIB, also known as the New UIB * License terms: GNU General Public License (GPL), version 2 */ -#include <linux/gpio.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/i2c.h>
arch/arm/plat-omap/clock.c +0 -1
@@ -477,7 +477,6 @@ int __init clk_init(struct clk_functions * custom_clocks)* debugfs support to trace clock tree hierarchy and attributes */ -#include <linux/debugfs.h> #include <linux/seq_file.h> static struct dentry *clk_debugfs_root;
arch/arm/plat-samsung/dev-backlight.c +0 -1
@@ -15,7 +15,6 @@#include <linux/slab.h> #include <linux/io.h> #include <linux/pwm_backlight.h> -#include <linux/slab.h> #include <plat/devs.h> #include <plat/gpio-cfg.h>
Signature · 1 line
1.7.4.1
Haojian Zhuang
maintainerPATCH 1/1 ARM: remove header files included more than once
Quoted 27 lines · Omar Ramirez Luna
checkincludes.pl complains about these:
? ? ? ?linux/debugfs.h
? ? ? ?linux/dma-mapping.h
? ? ? ?linux/gpio.h
? ? ? ?linux/sched.h
? ? ? ?linux/slab.h
? ? ? ?plat/common.h
? ? ? ?plat/i2c.hSigned-off-by Omar Ramirez Luna <[email protected]>---
?arch/arm/mach-bcmring/dma.c ? ? ? ? ? ? ? ? | ? ?1 - ?arch/arm/mach-ks8695/leds.c ? ? ? ? ? ? ? ? | ? ?1 - ?arch/arm/mach-mmp/aspenite.c ? ? ? ? ? ? ? ?| ? ?1 - ?arch/arm/mach-mmp/tavorevb.c ? ? ? ? ? ? ? ?| ? ?1 - ?arch/arm/mach-msm/board-msm7x30.c ? ? ? ? ? | ? ?1 - ?arch/arm/mach-msm/board-qsd8x50.c ? ? ? ? ? | ? ?1 - ?arch/arm/mach-omap2/board-ldp.c ? ? ? ? ? ? | ? ?1 - ?arch/arm/mach-omap2/io.c ? ? ? ? ? ? ? ? ? ?| ? ?1 - ?arch/arm/mach-omap2/omap_hwmod_44xx_data.c ?| ? ?1 - ?arch/arm/mach-pxa/pxa25x.c ? ? ? ? ? ? ? ? ?| ? ?1 - ?arch/arm/mach-pxa/pxa27x.c ? ? ? ? ? ? ? ? ?| ? ?1 - ?arch/arm/mach-pxa/saarb.c ? ? ? ? ? ? ? ? ? | ? ?1 - ?arch/arm/mach-shmobile/board-ag5evm.c ? ? ? | ? ?1 - ?arch/arm/mach-ux500/board-mop500-u8500uib.c | ? ?1 - ?arch/arm/plat-omap/clock.c ? ? ? ? ? ? ? ? ?| ? ?1 - ?arch/arm/plat-samsung/dev-backlight.c ? ? ? | ? ?1 -
Quoted 2 lines
?16 files changed, 0 insertions(+), 16 deletions(-)
Hi Omar,
Thanks for your patch. Could you help to split your patches into small pieces? Since different people are handling for different files. For example, I can help to handle files in arch-pxa. But I can't handle other files.
Best Regards
Haojian
PATCH 1/1 ARM: remove header files included more than once
Hi Haojian,
On Sun, Dec 11, 2011 at 7:10 PM, Haojian Zhuang
<[email protected]> wrote:
...
Quoted 6 lines
Hi Omar,
Thanks for your patch. Could you help to split your patches into small pieces? Since different people are handling for different files. For example, I can help to handle files in arch-pxa. But I can't handle other files.
No problem, I'll split the patch to be included by independent trees.
Thanks,
Omar
PATCH 1/1 ARM: remove header files included more than once
In reply to Omar Ramirez LunaQuoted 30 lines · Omar Ramirez Luna
checkincludes.pl complains about these:
linux/debugfs.h linux/dma-mapping.h linux/gpio.h linux/sched.h linux/slab.h plat/common.h plat/i2c.hSigned-off-by Omar Ramirez Luna <[email protected]>--- arch/arm/mach-bcmring/dma.c | 1 - arch/arm/mach-ks8695/leds.c | 1 - arch/arm/mach-mmp/aspenite.c | 1 - arch/arm/mach-mmp/tavorevb.c | 1 - arch/arm/mach-msm/board-msm7x30.c | 1 - arch/arm/mach-msm/board-qsd8x50.c | 1 - arch/arm/mach-omap2/board-ldp.c | 1 - arch/arm/mach-omap2/io.c | 1 - arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 1 - arch/arm/mach-pxa/pxa25x.c | 1 - arch/arm/mach-pxa/pxa27x.c | 1 - arch/arm/mach-pxa/saarb.c | 1 - arch/arm/mach-shmobile/board-ag5evm.c | 1 - arch/arm/mach-ux500/board-mop500-u8500uib.c | 1 - arch/arm/plat-omap/clock.c | 1 - arch/arm/plat-samsung/dev-backlight.c | 1 - 16 files changed, 0 insertions(+), 16 deletions(-)
(snip)
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm/plat-samsung/dev-backlight.c
Quoted 12 lines
index e657305..a976c02 100644
arch/arm/plat-samsung/dev-backlight.c +0
-2@@ -15,7 +15,6 @@#include <linux/slab.h> #include <linux/io.h> #include <linux/pwm_backlight.h> -#include <linux/slab.h> #include <plat/devs.h> #include <plat/gpio-cfg.h> --
Quoted 1 line
1.7.4.1
Hi,
Above has been already fixed in mainline.
:commit d7a4c45ec24b6c6773ff302c3c9cb5ed46c8e211 ("ARM: SAMSUNG: remove duplicated header include").
Anyway, thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.