]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
standalone eepro100_eeprom: fix build error
authorWolfgang Denk <wd@denx.de>
Fri, 12 Mar 2010 21:11:00 +0000 (22:11 +0100)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Mar 2010 21:56:50 +0000 (22:56 +0100)
Building examples/standalone/eepro100_eeprom triggers this error:

In file included from include/common.h:629,
                 from eepro100_eeprom.c:24:
include/net.h: In function 'NetReadIP':
include/net.h:430: warning: implicit declaration of function 'memcpy'
eepro100_eeprom.c: At top level:
eepro100_eeprom.c:81: error: conflicting types for 'memcpy'
include/net.h:430: error: previous implicit declaration of 'memcpy' was here

Fix this.

Signed-off-by: Wolfgang Denk <wd@denx.de>
examples/standalone/eepro100_eeprom.c

index 2b15d05adbb287c988899bc2ad09a3e0cbbc935b..771a7e887e4e882340d70c73457f57c926acfadf 100644 (file)
@@ -18,7 +18,6 @@
  */
 
 /* avoid unnecessary memcpy function */
-#define __HAVE_ARCH_MEMCPY
 #define _PPC_STRING_H_
 
 #include <common.h>
@@ -77,7 +76,7 @@ static inline short inw(long addr)
        return swap16(*(volatile short *)(addr));
 }
 
-static inline void *memcpy(void *dst, const void *src, unsigned int len)
+void *memcpy(void *dst, const void *src, unsigned int len)
 {
        char *ret = dst;
        while (len-- > 0) {