mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Enable GCC warning flag -Wnested-externs, fix warnings
Move nested extern declarations into header files, or use the already existing declarations. Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@861 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -50,7 +50,6 @@ struct cpudef {
|
||||
static uint16_t machine_id = 0;
|
||||
|
||||
extern void unexpected_excep( int vector );
|
||||
extern void setup_timers( void );
|
||||
|
||||
void
|
||||
unexpected_excep( int vector )
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "context.h"
|
||||
#include "libopenbios/sys_info.h"
|
||||
#include "boot.h"
|
||||
#include "openbios.h"
|
||||
|
||||
#define MAIN_STACK_SIZE 16384
|
||||
#define IMAGE_STACK_SIZE 4096
|
||||
@@ -46,7 +47,6 @@ unsigned long __boot_ctx;
|
||||
static void start_main(void)
|
||||
{
|
||||
int retval;
|
||||
extern int openbios(void);
|
||||
|
||||
/* Save startup context, so we can refer to it later.
|
||||
* We have to keep it in physical address since we will relocate. */
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "context.h"
|
||||
#include "libopenbios/sys_info.h"
|
||||
#include "boot.h"
|
||||
#include "openbios.h"
|
||||
|
||||
#define MAIN_STACK_SIZE 16384
|
||||
#define IMAGE_STACK_SIZE 4096*2
|
||||
@@ -46,7 +47,6 @@ unsigned long __boot_ctx;
|
||||
static void start_main(void)
|
||||
{
|
||||
int retval;
|
||||
extern int openbios(void);
|
||||
|
||||
/* Save startup context, so we can refer to it later.
|
||||
* We have to keep it in physical address since we will relocate. */
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include "context.h"
|
||||
#include "libopenbios/sys_info.h"
|
||||
#include "boot.h"
|
||||
#include "openbios.h"
|
||||
|
||||
#define MAIN_STACK_SIZE 16384
|
||||
#define IMAGE_STACK_SIZE 4096
|
||||
@@ -57,8 +58,6 @@ unsigned long __boot_ctx;
|
||||
static void start_main(void)
|
||||
{
|
||||
int retval;
|
||||
extern int openbios(void);
|
||||
extern void init_exceptions(void);
|
||||
|
||||
/* Save startup context, so we can refer to it later.
|
||||
* We have to keep it in physical address since we will relocate. */
|
||||
|
||||
@@ -50,8 +50,6 @@ static void init_memory(void)
|
||||
static void
|
||||
arch_init( void )
|
||||
{
|
||||
void setup_timers(void);
|
||||
|
||||
openbios_init();
|
||||
modules_init();
|
||||
#ifdef CONFIG_DRIVER_PCI
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
|
||||
int openbios(void);
|
||||
|
||||
/* entry.S */
|
||||
void init_exceptions(void);
|
||||
|
||||
/* console.c */
|
||||
extern void cls(void);
|
||||
#ifdef CONFIG_DEBUG_CONSOLE
|
||||
|
||||
Reference in New Issue
Block a user