Skip to contentSkip to conversation

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

PATCH New Chen Gang 1 participant 1 message Oct 30, 2013 PowerPC

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

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

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]

---
 arch/powerpc/platforms/powernv/rng.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/powerpc/platforms/powernv/rng.c +1 -0
index 02db7d7..b3e1ebc 100644
@@ -16,6 +16,7 @@
 #include <asm/archrandom.h>
 #include <asm/io.h>
 #include <asm/machdep.h>
+#include <asm/prom.h>
 
 
 struct powernv_rng {
Signature · 1 line
1.7.7.6