]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] fix OMAP include loops
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 23 May 2008 14:38:07 +0000 (15:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 23 May 2008 14:38:07 +0000 (15:38 +0100)
commitcfb41bf756cac168c829e27def36072dbfbe6fd0
tree4c3db390285bacc8c3379eb599585bd816e3fff1
parent2a740d7a64807acaceb7e44ccf50df35107a34ab
[ARM] fix OMAP include loops

OMAP has two include loops in its header files:

  asm-arm/hardware.h <- asm-arm/arch-omap/io.h <-
   asm-arm/arch-omap/hardware.h <- asm-arm/hardware.h

  asm-arm/arch-omap/board-palmte.h <-
   asm-arm/arch-omap/hardware.h <- asm-arm/hardware.h <-
   asm-arm/arch-omap/gpio.h <- asm-arm/arch-omap/board-palmte.h

Circular include dependencies are dangerous since they can result in
inconsistent definitions being provided to other code, especially if
'#ifndef' constructs are used.

Solve these by removing the offending includes, and add additional
includes where necessary.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-omap/board-palmte.h
include/asm-arm/arch-omap/entry-macro.S
include/asm-arm/arch-omap/gpio.h
include/asm-arm/arch-omap/hardware.h