[PATCH 23/25] imx: remove unneeded include of mach/hardware.h

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Jan 8 11:17:30 EST 2010


This include isn't needed and hurts when defining static inline
functions in mach/hardware.h (or files included by mach/hardware.h).

The reason is that the consumers of mach/uncompress.h are compiled using
-Dstatic= so the code for all inline function is included in e.g.
arch/arm/boot/compressed/misc.o.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Cc: Sascha Hauer <kernel at pengutronix.de>
Cc: Russell King <linux at arm.linux.org.uk>
Cc: Jörg Knobloch <knobloch at incostartec.com>
Cc: Alan Carvalho de Assis <acassis at gmail.com>
Cc: Daniel Mack <daniel at caiaq.de>
Cc: Dmitriy Taychenachev <dimichxp at gmail.com>
---
 arch/arm/plat-mxc/include/mach/uncompress.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/plat-mxc/include/mach/uncompress.h b/arch/arm/plat-mxc/include/mach/uncompress.h
index 4d5d395..d189f00 100644
--- a/arch/arm/plat-mxc/include/mach/uncompress.h
+++ b/arch/arm/plat-mxc/include/mach/uncompress.h
@@ -1,8 +1,6 @@
 /*
  *  arch/arm/plat-mxc/include/mach/uncompress.h
  *
- *
- *
  *  Copyright (C) 1999 ARM Limited
  *  Copyright (C) Shane Nay (shane at minirl.com)
  *
@@ -25,7 +23,6 @@
 
 #define __MXC_BOOT_UNCOMPRESS
 
-#include <mach/hardware.h>
 #include <asm/mach-types.h>
 
 static unsigned long uart_base;
-- 
1.6.5.2




More information about the linux-arm-kernel mailing list