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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"
 

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux