cleanup code to remove warnings

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1482 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2004-03-26 02:32:45 +00:00
parent 27916da0a9
commit 23e2e18960
8 changed files with 8 additions and 7 deletions

View 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

View 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);
}

View 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);

View File

@ -1,4 +1,5 @@
#include <stdlib.h>
#include <string.h>
#include <console/console.h>
#if 0

View 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
*/

View 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":"",

View 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

View 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: