[PATCH] powerpc: platforms: powernv: include "asm/prom.h" in "rng.c"

Chen Gang gang.chen at asianux.com
Wed Oct 30 13:55:39 EST 2013


Need include the related header file, or can not pass compiling with
allmodconfig.

The related error (with allmodconfig):

    CC      arch/powerpc/platforms/powernv/rng.o
  arch/powerpc/platforms/powernv/rng.c: In function ‘rng_init_per_cpu’:
  arch/powerpc/platforms/powernv/rng.c:64:2: error: implicit declaration of function ‘of_get_ibm_chip_id’ [-Werror=implicit-function-declaration]
  arch/powerpc/platforms/powernv/rng.c: In function ‘rng_create’:
  arch/powerpc/platforms/powernv/rng.c:85:2: error: implicit declaration of function ‘of_iomap’ [-Werror=implicit-function-declaration]
  arch/powerpc/platforms/powernv/rng.c:85:12: warning: assignment makes pointer from integer without a cast [enabled by default]


Signed-off-by: Chen Gang <gang.chen at asianux.com>
---
 arch/powerpc/platforms/powernv/rng.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/platforms/powernv/rng.c b/arch/powerpc/platforms/powernv/rng.c
index 02db7d7..b3e1ebc 100644
--- a/arch/powerpc/platforms/powernv/rng.c
+++ b/arch/powerpc/platforms/powernv/rng.c
@@ -16,6 +16,7 @@
 #include <asm/archrandom.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
+#include <asm/prom.h>
 
 
 struct powernv_rng {
-- 
1.7.7.6


More information about the Linuxppc-dev mailing list