[v2] powerpc: pseries/dtl.c should include asm/firmware.h

Message ID 1239755755.553226.808801509343.1.gpush@pingu
State Accepted, archived
Commit b71a0c296cee4debaf446760fbd29ead1587a7ac
Delegated to: Paul Mackerras
Headers show

Commit Message

Jeremy Kerr April 15, 2009, 12:35 a.m.
From: Sachin Sant <sachinp@in.ibm.com>

A randconfig build on powerpc failed with:

dtl.c: In function 'dtl_init':
dtl.c:238: error: implicit declaration of function 'firmware_has_feature'
dtl.c:238: error: 'FW_FEATURE_SPLPAR' undeclared (first use in this function)

- We need firmware.h for these definitions.

Signed-off-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

v2: This time without the non-ascii quotes

 arch/powerpc/platforms/pseries/dtl.c |    1 +
 1 file changed, 1 insertion(+)


diff --git a/arch/powerpc/platforms/pseries/dtl.c b/arch/powerpc/platforms/pseries/dtl.c
index fafcaa0..ab69925 100644
--- a/arch/powerpc/platforms/pseries/dtl.c
+++ b/arch/powerpc/platforms/pseries/dtl.c
@@ -25,6 +25,7 @@ 
 #include <asm/smp.h>
 #include <asm/system.h>
 #include <asm/uaccess.h>
+#include <asm/firmware.h>
 #include "plpar_wrappers.h"