summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2004-03-26 02:32:45 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2004-03-26 02:32:45 +0000
commit23e2e18960d5ffed4bc8bb082f1ef8e471307657 (patch)
treeb99cd83c884082dd816a53de851226cd475b2861
parent27916da0a914ee6e096bb98b4e5112511221281f (diff)
cleanup code to remove warnings
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1482 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/boot/hardwaremain.c4
-rw-r--r--src/console/uart8250_console.c2
-rw-r--r--src/include/device/device.h1
-rw-r--r--src/lib/malloc.c1
-rw-r--r--src/mainboard/motorola/sandpoint/init.c3
-rw-r--r--src/pc80/mc146818rtc.c1
-rw-r--r--src/southbridge/winbond/w83c553/w83c553f.c2
-rw-r--r--src/superio/NSC/pc97307/superio.c1
8 files changed, 8 insertions, 7 deletions
diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c
index e3667cccd8..86ea097965 100644
--- a/src/boot/hardwaremain.c
+++ b/src/boot/hardwaremain.c
@@ -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
diff --git a/src/console/uart8250_console.c b/src/console/uart8250_console.c
index 333693befb..c5d32cf579 100644
--- a/src/console/uart8250_console.c
+++ b/src/console/uart8250_console.c
@@ -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);
}
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 38efe53adc..708fa149d3 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -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);
diff --git a/src/lib/malloc.c b/src/lib/malloc.c
index 4a60012500..99a7b614fb 100644
--- a/src/lib/malloc.c
+++ b/src/lib/malloc.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <string.h>
#include <console/console.h>
#if 0
diff --git a/src/mainboard/motorola/sandpoint/init.c b/src/mainboard/motorola/sandpoint/init.c
index de50a91be5..3a9993d785 100644
--- a/src/mainboard/motorola/sandpoint/init.c
+++ b/src/mainboard/motorola/sandpoint/init.c
@@ -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
*/
diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c
index b77653c52e..bd6188b7b9 100644
--- a/src/pc80/mc146818rtc.c
+++ b/src/pc80/mc146818rtc.c
@@ -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":"",
diff --git a/src/southbridge/winbond/w83c553/w83c553f.c b/src/southbridge/winbond/w83c553/w83c553f.c
index cf91893f28..054fc25d32 100644
--- a/src/southbridge/winbond/w83c553/w83c553f.c
+++ b/src/southbridge/winbond/w83c553/w83c553f.c
@@ -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
diff --git a/src/superio/NSC/pc97307/superio.c b/src/superio/NSC/pc97307/superio.c
index 5c7acb012d..124dd5c89c 100644
--- a/src/superio/NSC/pc97307/superio.c
+++ b/src/superio/NSC/pc97307/superio.c
@@ -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: