Fix compiling error in rng.c
PATCH 1/1 Fix compiling error in rng.c
This patch tries to fix following compiling errors, by including the needed header file:
arch/powerpc/platforms/pseries/rng.c: In function 'pseries_get_random_long':arch/powerpc/platforms/pseries/rng.c:20: error: 'PLPAR_HCALL_BUFSIZE' undeclared (first use in this function)
...
Signed-off-by Li Zhong <[email protected]>
--- arch/powerpc/platforms/pseries/rng.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/pseries/rng.c +1 -1
@@ -13,7 +13,7 @@#include <linux/of.h> #include <asm/archrandom.h> #include <asm/machdep.h> - +#include <asm/hvcall.h> static int pseries_get_random_long (unsigned long *v) {