common: move extern char console_buffer[] to common.h

Extract all extern declarations for console_buffer[] out of c files into
the common.h header.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Frank Gottschling <fgottschling@eltec.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
This commit is contained in:
Igor Grinberg
2011-11-07 01:13:56 +00:00
committed by Stefano Babic
parent 507651d611
commit e3150460a4
14 changed files with 1 additions and 17 deletions

View File

@@ -51,7 +51,6 @@ static int setBootStrapClock(cmd_tbl_t *cmdtp, int incrflag, int flag,
uchar chip;
ulong data;
int nbytes;
extern char console_buffer[];
char sysClock[4];
char cpuClock[4];

View File

@@ -31,7 +31,6 @@
#include "srom.h"
/* imports */
extern char console_buffer[CONFIG_SYS_CBSIZE];
extern int l2_cache_enable (int l2control);
extern void *nvram_read (void *dest, const short src, size_t count);
extern void nvram_write (short dest, const void *src, size_t count);

View File

@@ -29,7 +29,6 @@
#include "srom.h"
/* imports */
extern char console_buffer[CONFIG_SYS_CBSIZE];
extern int l2_cache_enable (int l2control);
extern int eepro100_write_eeprom (struct eth_device *dev, int location,
int addr_len, unsigned short data);

View File

@@ -35,9 +35,6 @@
#include "mpc8xx.h"
#include <video_fb.h>
/* imports from common/main.c */
extern char console_buffer[CONFIG_SYS_CBSIZE];
extern void eeprom_init (void);
extern int eeprom_read (unsigned dev_addr, unsigned offset,
unsigned char *buffer, unsigned cnt);

View File

@@ -23,9 +23,6 @@
#include <common.h>
/* imports from common/main.c */
extern char console_buffer[CONFIG_SYS_CBSIZE];
int
hymod_get_serno (const char *prompt)
{