From: Paul Gortmaker Date: Fri, 22 Jul 2011 17:52:47 +0000 (-0400) Subject: powerpc: cell/beat_wrapper.h is implicitly using memcpy functions X-Git-Tag: firefly_0821_release~3680^2~4166^2~194 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=08f1e55cc70141fa5c3634043ba333f4734e7e04;p=firefly-linux-kernel-4.4.55.git powerpc: cell/beat_wrapper.h is implicitly using memcpy functions 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 --- diff --git a/arch/powerpc/platforms/cell/beat_wrapper.h b/arch/powerpc/platforms/cell/beat_wrapper.h index b47dfda48d06..c1109969f242 100644 --- a/arch/powerpc/platforms/cell/beat_wrapper.h +++ b/arch/powerpc/platforms/cell/beat_wrapper.h @@ -20,6 +20,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef BEAT_HCALL +#include #include "beat_syscall.h" /* defined in hvCall.S */