]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix implicit declaration of function 'eth_[gs]etenv_enetaddr'
authorWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 19:16:16 +0000 (20:16 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 19:16:16 +0000 (20:16 +0100)
...and some other compile warnings.

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/pcs440ep/pcs440ep.c
board/sandburst/karef/karef.c
board/sandburst/metrobox/metrobox.c
board/xpedite1k/xpedite1k.c
common/lynxkdi.c

index 27272142c17548ced2c65ed3d64baacb67604c2c..9cc3f5b640583e5530d999a67e68f33ff8560b03 100644 (file)
@@ -31,6 +31,7 @@
 #include <status_led.h>
 #include <sha1.h>
 #include <asm/io.h>
+#include <net.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -186,8 +187,7 @@ static void load_ethaddr(void)
 {
        int     ok_ethaddr, ok_eth1addr;
        int     ret;
-       char    buf[EEPROM_LEN];
-       char    mac[32];
+       uchar   buf[EEPROM_LEN];
        char    *use_eeprom;
        u16     checksumcrc16 = 0;
 
@@ -200,14 +200,14 @@ static void load_ethaddr(void)
        /* read the MACs from EEprom */
        status_led_set (0, STATUS_LED_ON);
        status_led_set (1, STATUS_LED_ON);
-       ret = eeprom_read (CONFIG_SYS_I2C_EEPROM_ADDR, 0, (uchar *)buf, EEPROM_LEN);
+       ret = eeprom_read (CONFIG_SYS_I2C_EEPROM_ADDR, 0, buf, EEPROM_LEN);
        if (ret == 0) {
-               checksumcrc16 = cyg_crc16 ((uchar *)buf, EEPROM_LEN - 2);
+               checksumcrc16 = cyg_crc16 (buf, EEPROM_LEN - 2);
                /* check, if the EEprom is programmed:
                 * - The Prefix(Byte 0,1,2) is equal to "ATR"
                 * - The checksum, stored in the last 2 Bytes, is correct
                 */
-               if ((strncmp (buf,"ATR",3) != 0) ||
+               if ((strncmp ((char *)buf,"ATR",3) != 0) ||
                    ((checksumcrc16 >> 8) != buf[EEPROM_LEN - 2]) ||
                    ((checksumcrc16 & 0xff) != buf[EEPROM_LEN - 1])) {
                        /* EEprom is not programmed */
index 1ad1ae251974881b948c8e918c0e8edbc6e5a6c8..b8ae68fcd6166f35415df7af4d83e062eb876917 100644 (file)
 #include <i2c.h>
 #include "../common/sb_common.h"
 #include "../common/ppc440gx_i2c.h"
+#if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) || \
+    defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
+#include <net.h>
+#endif
 
 void fpga_init (void);
 
index bd6be3d2aa5adc973c767ca918f75ede3fcee196..fc136c89c400c89c6fa427fed5f223ca6a2e94ac 100644 (file)
 #include <i2c.h>
 #include "../common/ppc440gx_i2c.h"
 #include "../common/sb_common.h"
+#if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) || \
+    defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
+#include <net.h>
+#endif
 
 void fpga_init (void);
 
index 92dc6280d2507940a130e19dedf14c9d0e1d3fb9..044aeb956df0d2d289717e50197b8d7c631d2d9e 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/processor.h>
 #include <spd_sdram.h>
 #include <i2c.h>
+#include <net.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 17b0607ae0cd627b2d70501b0c28b1d20313a61d..b23135bd75e6452a6597f77b341e8ec300b62d90 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <asm/processor.h>
 #include <image.h>
+#include <net.h>
 
 #include <lynxkdi.h>