[PATCH 38/46] davinci: fix compilation error when using mach/system.h

Kevin Hilman khilman at deeprootsystems.com
Fri Oct 16 15:09:42 EDT 2009


From: Sekhar Nori <nsekhar at ti.com>

include/mach/system.h uses the cpu_do_idle() function which is
defined in asm/proc-fns.h. Without this patch including system.h
leads to error of the sort:

error: implicit declaration of function 'cpu_do_idle'

Signed-off-by: Sekhar Nori <nsekhar at ti.com>
Signed-off-by: Kevin Hilman <khilman at deeprootsystems.com>
---
 arch/arm/mach-davinci/include/mach/system.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-davinci/include/mach/system.h b/arch/arm/mach-davinci/include/mach/system.h
index 8e4f10f..f1a5f3d 100644
--- a/arch/arm/mach-davinci/include/mach/system.h
+++ b/arch/arm/mach-davinci/include/mach/system.h
@@ -13,6 +13,7 @@
 
 #include <linux/io.h>
 #include <mach/hardware.h>
+#include <asm/proc-fns.h>
 
 extern void davinci_watchdog_reset(void);
 
-- 
1.6.4.3




More information about the linux-arm-kernel mailing list