Skip to contentSkip to conversation

ARM: remove header files included more than once

PATCH New Omar Ramirez Luna 3 participants 4 messages Dec 9, 2011 – Dec 21, 2011

Subsystems (9)
lore
Share & tools
lore
#0 lore raw

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
index f4d4d6d..b52b8de 100644
@@ -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
index d6f6502..4bd7075 100644
@@ -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
index 7a60bbb..2b3b0c6 100644
@@ -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
index eb5be87..143e52e 100644
@@ -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
index db81ed5..8a941bb 100644
@@ -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
index 7e8909c..d82a73e 100644
@@ -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
index e179da0..eed5c78 100644
@@ -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
index 25d20ce..cf25a60 100644
@@ -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
index daaf165..5f78e90 100644
@@ -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
index f05f948..f6ef67f 100644
@@ -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
index bc5a98e..2dd93e9 100644
@@ -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
index 3e999e3..7991552 100644
@@ -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
index b862e9f..544cde2 100644
@@ -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
index feb5744..4df0a3d 100644
@@ -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
index 567e4b5..6022154 100644
@@ -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
index e657305..a976c02 100644
@@ -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
maintainer
#1 lore raw

PATCH 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.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 -
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

#2 lore raw

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

#3 lore raw

PATCH 1/1 ARM: remove header files included more than once

In reply to Omar Ramirez Luna
Quoted 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.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(-)

(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.