* [PATCH] powerpc: platforms: powernv: include "asm/prom.h" in "rng.c"
@ 2013-10-30 2:55 Chen Gang
0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-10-30 2:55 UTC (permalink / raw)
To: Benjamin Herrenschmidt, paulus, Michael Ellerman; +Cc: linuxppc-dev
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@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-30 2:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-30 2:55 [PATCH] powerpc: platforms: powernv: include "asm/prom.h" in "rng.c" Chen Gang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).