Fix most warnings from Sparse

git-svn-id: svn://coreboot.org/openbios/openbios-devel@274 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-11-30 11:54:01 +00:00
parent c52d26b976
commit bf0c6b1c38
51 changed files with 186 additions and 166 deletions

View File

@@ -100,5 +100,6 @@ typedef struct Elf_Nhdr
#define EB_IA64_IMAGE_HANDLE 0x00000007
#define EB_I386_MEMMAP 0x00000008
extern const struct elf_image_note elf_image_notes;
#endif /* ELF_BOOT_H */

View File

@@ -17,6 +17,8 @@
#ifndef _H_STRING
#define _H_STRING
#include "openbios/config.h"
#define bzero(s,n) memset( s, 0, n )
#define atol(nptr) strtol(nptr, NULL, 10 )
@@ -95,5 +97,6 @@ static inline unsigned char __toupper(unsigned char c) {
#define tolower(c) __tolower(c)
#define toupper(c) __toupper(c)
extern int errno_int;
#endif /* _H_STRING */

View File

@@ -13,6 +13,7 @@
#ifdef CONFIG_DRIVER_PCI
int ob_pci_init(void);
void macio_nvram_init(char *path, uint32_t addr);
#endif
#ifdef CONFIG_DRIVER_SBUS
int ob_sbus_init(uint64_t base, int machine_id);
@@ -38,6 +39,17 @@ int ob_obio_init(uint64_t slavio_base, unsigned long fd_offset,
int start_cpu(unsigned int pc, unsigned int context_ptr, unsigned int context,
int cpu);
extern struct mem cmem;
extern uint16_t graphic_depth;
extern volatile unsigned char *power_reg;
extern volatile unsigned int *reset_reg;
extern const char *obp_stdin_path, *obp_stdout_path;
extern char obp_stdin, obp_stdout;
extern volatile struct sun4m_timer_regs *counter_regs;
extern uint32_t kernel_image;
extern uint32_t kernel_size;
extern uint32_t qemu_cmdline;
extern uint32_t cmdline_size;
extern char boot_device;
#endif
#ifdef CONFIG_DRIVER_FLOPPY
int ob_floppy_init(void);