powerpc: fix two implicit header uses in pseries/plpar_wrappers.h
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 22 Jul 2011 22:04:33 +0000 (18:04 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 23:30:42 +0000 (19:30 -0400)
Removing the implicit presence of module.h from almost everywhere
will reveal this implicit usage of paca.h and string.h headers as
follows:

arch/powerpc/platforms/pseries/plpar_wrappers.h:22: error: implicit declaration of function 'get_lppaca'
arch/powerpc/platforms/pseries/plpar_wrappers.h:208: error: implicit declaration of function 'memcpy'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/powerpc/platforms/pseries/plpar_wrappers.h

index 41c24c146d6a9e8f06403272944a116860091ce3..342797fc0f9c5f6e276993b6cf704380c1b3e464 100644 (file)
@@ -1,7 +1,10 @@
 #ifndef _PSERIES_PLPAR_WRAPPERS_H
 #define _PSERIES_PLPAR_WRAPPERS_H
 
+#include <linux/string.h>
+
 #include <asm/hvcall.h>
+#include <asm/paca.h>
 #include <asm/page.h>
 
 /* Get state of physical CPU from query_cpu_stopped */