Hi.
This patch cleans up the declaration of extern.
Thanks
Ken'ichi Ohmichi
diff -puN makedumpfile.org/ia64.c makedumpfile/ia64.c
--- makedumpfile.org/ia64.c 2006-10-10 11:33:45.000000000 +0900
+++ makedumpfile/ia64.c 2006-10-10 11:34:03.000000000 +0900
@@ -17,10 +17,6 @@
#include "makedumpfile.h"
-extern struct symbol_table symbol_table;
-extern struct size_table size_table;
-extern struct offset_table offset_table;
-
int
get_phys_base_ia64(struct DumpInfo *info)
{
diff -puN makedumpfile.org/makedumpfile.c makedumpfile/makedumpfile.c
--- makedumpfile.org/makedumpfile.c 2006-10-10 11:33:45.000000000 +0900
+++ makedumpfile/makedumpfile.c 2006-10-10 11:34:03.000000000 +0900
@@ -22,12 +22,14 @@
#include "makedumpfile.h"
-struct dwarf_info dwarf_info;
-extern struct symbol_table symbol_table;
-extern struct size_table size_table;
-extern struct offset_table offset_table;
+struct symbol_table symbol_table;
+struct size_table size_table;
+struct offset_table offset_table;
+
+struct dwarf_info dwarf_info;
+struct vm_table *vt = 0;
+
int retcd = COMPLETED; /* return code */
-struct vm_table *vt = 0;
void
show_version()
diff -puN makedumpfile.org/makedumpfile.h makedumpfile/makedumpfile.h
--- makedumpfile.org/makedumpfile.h 2006-10-10 11:33:45.000000000 +0900
+++ makedumpfile/makedumpfile.h 2006-10-10 11:34:03.000000000 +0900
@@ -530,9 +530,9 @@ struct offset_table {
} list_head;
};
-struct symbol_table symbol_table;
-struct size_table size_table;
-struct offset_table offset_table;
+extern struct symbol_table symbol_table;
+extern struct size_table size_table;
+extern struct offset_table offset_table;
/*
* Debugging information
@@ -556,9 +556,10 @@ struct dwarf_info {
int member_offset; /* OUT */
};
-extern struct dwarf_info dwarf_info;
-
struct dwarf_values {
Dwarf_Die *die;
uint32_t *found_map;
};
+
+extern struct dwarf_info dwarf_info;
+
diff -puN makedumpfile.org/x86.c makedumpfile/x86.c
--- makedumpfile.org/x86.c 2006-10-10 11:33:45.000000000 +0900
+++ makedumpfile/x86.c 2006-10-10 11:34:03.000000000 +0900
@@ -17,10 +17,6 @@
#include "makedumpfile.h"
-extern struct symbol_table symbol_table;
-extern struct size_table size_table;
-extern struct offset_table offset_table;
-
int
get_machdep_info_x86(struct DumpInfo *info)
{
diff -puN makedumpfile.org/x86_64.c makedumpfile/x86_64.c
--- makedumpfile.org/x86_64.c 2006-10-10 11:33:45.000000000 +0900
+++ makedumpfile/x86_64.c 2006-10-10 11:34:03.000000000 +0900
@@ -17,10 +17,6 @@
#include "makedumpfile.h"
-extern struct symbol_table symbol_table;
-extern struct size_table size_table;
-extern struct offset_table offset_table;
-
/*
* Include both vmalloc'd and module address space as VMALLOC space.
*/
_
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot