randconfig build on powerpc failed with : arch/powerpc/platforms/pseries/dtl.c: In function ‘dtl_init’: arch/powerpc/platforms/pseries/dtl.c:238: error: implicit declaration of function ‘firmware_has_feature’ arch/powerpc/platforms/pseries/dtl.c:238: error: ‘FW_FEATURE_SPLPAR’ undeclared (first use in this function) arch/powerpc/platforms/pseries/dtl.c:238: error: (Each undeclared identifier is reported only once arch/powerpc/platforms/pseries/dtl.c:238: error: for each function it appears in.) Signed-off-by : Sachin Sant <sachinp@xxxxxxxxxx> ---
* Fixes the following build error * * arch/powerpc/platforms/pseries/dtl.c: In function â??dtl_initâ??: * arch/powerpc/platforms/pseries/dtl.c:238: * error: implicit declaration of function â??firmware_has_featureâ?? * arch/powerpc/platforms/pseries/dtl.c:238: * error: â??FW_FEATURE_SPLPARâ?? undeclared (first use in this function) * arch/powerpc/platforms/pseries/dtl.c:238: * error: (Each undeclared identifier is reported only once * arch/powerpc/platforms/pseries/dtl.c:238: * error: for each function it appears in.) Signed-off-by : Sachin Sant <sachinp@xxxxxxxxxx> --- diff -Naurp a/arch/powerpc/platforms/pseries/dtl.c b/arch/powerpc/platforms/pseries/dtl.c --- a/arch/powerpc/platforms/pseries/dtl.c 2009-04-01 15:46:59.000000000 +0530 +++ b/arch/powerpc/platforms/pseries/dtl.c 2009-04-01 15:47:58.000000000 +0530 @@ -25,6 +25,7 @@ #include <asm/smp.h> #include <asm/system.h> #include <asm/uaccess.h> +#include <asm/firmware.h> #include "plpar_wrappers.h"