Make all those locally used functions static instead of exporting them. (triv)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4593 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
diff --git a/src/arch/i386/boot/coreboot_table.c b/src/arch/i386/boot/coreboot_table.c
index 6c7693c..6d59123 100644
--- a/src/arch/i386/boot/coreboot_table.c
+++ b/src/arch/i386/boot/coreboot_table.c
@@ -1,5 +1,28 @@
+/*
+ * This file is part of the coreboot project.
+ * 
+ * Copyright (C) 2003-2004 Eric Biederman
+ * Copyright (C) 2005-2009 coresystems GmbH
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; version 2 of
+ * the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
+
 #include <console/console.h>
 #include <ip_checksum.h>
+#include <boot/tables.h>
 #include <boot/coreboot_tables.h>
 #include "coreboot_table.h"
 #include <string.h>
@@ -7,7 +30,7 @@
 #include <device/device.h>
 #include <stdlib.h>
 
-struct lb_header *lb_table_init(unsigned long addr)
+static struct lb_header *lb_table_init(unsigned long addr)
 {
 	struct lb_header *header;
 
@@ -28,27 +51,27 @@
 	return header;
 }
 
-struct lb_record *lb_first_record(struct lb_header *header)
+static struct lb_record *lb_first_record(struct lb_header *header)
 {
 	struct lb_record *rec;
 	rec = (void *)(((char *)header) + sizeof(*header));
 	return rec;
 }
 
-struct lb_record *lb_last_record(struct lb_header *header)
+static struct lb_record *lb_last_record(struct lb_header *header)
 {
 	struct lb_record *rec;
 	rec = (void *)(((char *)header) + sizeof(*header) + header->table_bytes);
 	return rec;
 }
 
-struct lb_record *lb_next_record(struct lb_record *rec)
+static struct lb_record *lb_next_record(struct lb_record *rec)
 {
 	rec = (void *)(((char *)rec) + rec->size);	
 	return rec;
 }
 
-struct lb_record *lb_new_record(struct lb_header *header)
+static struct lb_record *lb_new_record(struct lb_header *header)
 {
 	struct lb_record *rec;
 	rec = lb_last_record(header);
@@ -63,7 +86,7 @@
 }
 
 
-struct lb_memory *lb_memory(struct lb_header *header)
+static struct lb_memory *lb_memory(struct lb_header *header)
 {
 	struct lb_record *rec;
 	struct lb_memory *mem;
@@ -74,7 +97,7 @@
 	return mem;
 }
 
-struct lb_serial *lb_serial(struct lb_header *header)
+static struct lb_serial *lb_serial(struct lb_header *header)
 {
 #if defined(CONFIG_TTYS0_BASE)
 	struct lb_record *rec;
@@ -91,7 +114,7 @@
 #endif
 }
 
-void add_console(struct lb_header *header, u16 consoletype)
+static void add_console(struct lb_header *header, u16 consoletype)
 {
 	struct lb_console *console;
 
@@ -101,7 +124,7 @@
 	console->type = consoletype;
 }
 
-void lb_console(struct lb_header *header)
+static void lb_console(struct lb_header *header)
 {
 #ifdef CONFIG_CONSOLE_SERIAL8250
 	add_console(header, LB_TAG_CONSOLE_SERIAL8250);
@@ -147,7 +170,7 @@
 	return mainboard;
 }
 
-struct cmos_checksum *lb_cmos_checksum(struct lb_header *header)
+static struct cmos_checksum *lb_cmos_checksum(struct lb_header *header)
 {
 	struct lb_record *rec;
 	struct cmos_checksum *cmos_checksum;
@@ -165,7 +188,7 @@
 	return cmos_checksum;
 }
 
-void lb_strings(struct lb_header *header)
+static void lb_strings(struct lb_header *header)
 {
 	static const struct {
 		uint32_t tag;
@@ -195,7 +218,7 @@
 
 }
 
-struct lb_forward *lb_forward(struct lb_header *header, struct lb_header *next_header)
+static struct lb_forward *lb_forward(struct lb_header *header, struct lb_header *next_header)
 {
 	struct lb_record *rec;
 	struct lb_forward *forward;