]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc: cell/beat_wrapper.h is implicitly using memcpy functions
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 22 Jul 2011 17:52:47 +0000 (13:52 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 08:05:13 +0000 (04:05 -0400)
This has been relying on the fact that the parent file would have
module.h (and thus nearly everything) present.  But once we fix that,
we'll get stuck with this failure:

In file included from arch/powerpc/platforms/cell/beat_spu_priv1.c:26:
arch/powerpc/platforms/cell/beat_wrapper.h: In function 'beat_eeprom_write':
arch/powerpc/platforms/cell/beat_wrapper.h:160: error: implicit declaration of function 'memcpy'

and many more instances of the same.  Fix it in advance.

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

index b47dfda48d0672442b212d41dd93cbaa0833e437..c1109969f24257579950b1569d7a24e000a388c2 100644 (file)
@@ -20,6 +20,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #ifndef BEAT_HCALL
+#include <linux/string.h>
 #include "beat_syscall.h"
 
 /* defined in hvCall.S */