Commit ee48a75c95145bf6af3be329cd7cbbca2ec89a2a

Authored by Russell King
Committed by Russell King
1 parent 1beee8dc8c

[ARM] fix AT91 include loops

AT91 has one include loop in its header files:

  include/asm-arm/io.h <- include/asm-arm/arch-at91/io.h <-
   include/asm-arm/io.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 this by removing the offending includes.  Built tested using my
AT91 configuration.

Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

include/asm-arm/arch-at91/io.h
... ... @@ -21,8 +21,6 @@
21 21 #ifndef __ASM_ARCH_IO_H
22 22 #define __ASM_ARCH_IO_H
23 23  
24   -#include <asm/io.h>
25   -
26 24 #define IO_SPACE_LIMIT 0xFFFFFFFF
27 25  
28 26 #define __io(a) ((void __iomem *)(a))