cleanup code to remove warnings
authorGreg Watson <jarrah@users.sourceforge.net>
Fri, 26 Mar 2004 02:32:45 +0000 (02:32 +0000)
committerGreg Watson <jarrah@users.sourceforge.net>
Fri, 26 Mar 2004 02:32:45 +0000 (02:32 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1482 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/boot/hardwaremain.c
src/console/uart8250_console.c
src/include/device/device.h
src/lib/malloc.c
src/mainboard/motorola/sandpoint/init.c
src/pc80/mc146818rtc.c
src/southbridge/winbond/w83c553/w83c553f.c
src/superio/NSC/pc97307/superio.c

index e3667cccd89c7d32a7a7807f15991e6eeada4662..86ea097965e65b21c70efcc0ee92ec9487bd7f58 100644 (file)
@@ -46,6 +46,10 @@ it with the version available from LANL.
 #define CONFIG_MAX_PHYSICAL_CPUS CONFIG_MAX_CPUS
 #endif
 
+#if CONFIG_FS_STREAM == 1
+extern int filo(struct lb_memory *);
+#endif
+
 /* The processor map. 
  * Now that SMP is in linuxbios, and Linux counts on us
  * giving accurate information about processors, we need a map
index 333693befbc42998d3e9ca19aba187c32ec748a0..c5d32cf5790780abbee63c57a173e2afdc0fe494 100644 (file)
@@ -48,7 +48,7 @@ unsigned char ttyS0_rx_byte(void)
        return uart8250_rx_byte(TTYS0_BASE);
 }
 
-int ttyS0_tst_byte(unsigned char data
+int ttyS0_tst_byte(void
 {
        return uart8250_can_rx_byte(TTYS0_BASE);
 }
index 38efe53adc31c30f898f856f3cb4c99ac8ead996..708fa149d3eea183bef9c7dc65b27803b2583303 100644 (file)
@@ -82,6 +82,7 @@ extern void compute_allocate_resource(struct bus *bus, struct resource *bridge,
 extern void assign_resources(struct bus *bus);
 extern void enable_resources(struct device *dev);
 extern void enumerate_static_device(void);
+extern void enumerate_static_devices(void);
 extern const char *dev_path(device_t dev);
 extern void compact_resources(device_t dev);
 extern struct resource *get_resource(device_t dev, unsigned index);
index 4a60012500ce48156c12b8636b42c918b006a4a0..99a7b614fb6bc1dcf1cefd039cc92a38c85a5411 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdlib.h>
+#include <string.h>
 #include <console/console.h>
 
 #if 0
index de50a91be57e91270ad7f7c094ddeeb7cd68e6a1..3a9993d7854d68286ea63b5e842ea3a0f316765e 100644 (file)
@@ -34,6 +34,7 @@
 #include <ppc.h>
 #include <arch/io.h>
 #include <printk.h>
+#include <uart8250.h>
 
 void pnp_output(char address, char data)
 {
@@ -44,8 +45,6 @@ void pnp_output(char address, char data)
 void
 board_init(void)
 {
-       unsigned char reg8;
-
        /*
         * Configure FLASH
         */
index b77653c52e712fae18fe88eec02d273d50e8c6cb..bd6188b7b94456e8b691002dc78b4650f27ebbc1 100644 (file)
@@ -135,7 +135,6 @@ void rtc_init(int invalid)
                        PC_CKS_RANGE_END,PC_CKS_LOC);
 
        if (invalid || cmos_invalid || checksum_invalid) {
-               int i;
                printk_warning("RTC:%s%s%s zeroing cmos\n",
                        invalid?" Clear requested":"", 
                        cmos_invalid?" Power Problem":"",
index cf91893f280014a9c3930f73231d7e88e7331194..054fc25d3204ae447f0d7007d284783a42fc52c0 100644 (file)
@@ -44,8 +44,6 @@ void initialise_dma(void);
 static void 
 w83c553_init(struct device *dev)
 {
-       unsigned char reg8;
-
        printk_info("Configure W83C553F ISA Bridge (Function 0)\n");
 
 #if 0
index 5c7acb012dbcb8a09cfcce9e3c3bc4c62381356f..124dd5c89cce6dbc0d120e57f9817eef8694716d 100644 (file)
@@ -16,7 +16,6 @@ void sio_enable(struct chip *chip, enum chip_pass pass)
 {
 
        unsigned char reg;
-       struct superio_NSC_pc97307_config *conf = (struct superio_NSC_pc97307_config *)chip->chip_info;
 
        switch (pass) {
        case CONF_PASS_PRE_PCI: