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:
committed by
Stefano Babic
parent
507651d611
commit
e3150460a4
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user