diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-10-04 13:02:28 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-10-04 13:02:28 +0200 |
commit | e31b42385bbeb9683510be0b9fb6f027ebc3d05e (patch) | |
tree | 9184d6520dd9ab99bc93aac799fb13a235f95e86 /scripts/mod | |
parent | 63bceb255c3234f07f6109cb17f6c50dcfbf3dd1 (diff) | |
download | barebox-e31b42385bbeb9683510be0b9fb6f027ebc3d05e.tar.gz barebox-e31b42385bbeb9683510be0b9fb6f027ebc3d05e.tar.xz |
remove some (currently) unneeded functions
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 88084ea771..3961735e44 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -13,7 +13,7 @@ #include <ctype.h> #include "modpost.h" -#include "../../include/license.h" +//#include "../../include/license.h" /* Are we using CONFIG_MODVERSIONS? */ int modversions = 0; @@ -232,7 +232,7 @@ static enum export export_no(const char * s) } return export_unknown; } - +#if 0 static enum export export_from_sec(struct elf_info *elf, Elf_Section sec) { if (sec == elf->export_sec) @@ -248,7 +248,7 @@ static enum export export_from_sec(struct elf_info *elf, Elf_Section sec) else return export_unknown; } - +#endif /** * Add an exported symbol - it may have already been added without a * CRC, in this case just update the CRC @@ -443,7 +443,7 @@ static void parse_elf_finish(struct elf_info *info) #define CRC_PFX MODULE_SYMBOL_PREFIX "__crc_" #define KSYMTAB_PFX MODULE_SYMBOL_PREFIX "__ksymtab_" - +#if 0 static void handle_modversions(struct module *mod, struct elf_info *info, Elf_Sym *sym, const char *symname) { @@ -513,6 +513,7 @@ static void handle_modversions(struct module *mod, struct elf_info *info, break; } } +#endif /** * Parse tag=value strings from .modinfo section @@ -1220,12 +1221,12 @@ static int exit_section_ref_ok(const char *name) static void read_symbols(char *modname) { - const char *symname; +// const char *symname; char *version; - char *license; +// char *license; struct module *mod; struct elf_info info = { }; - Elf_Sym *sym; +// Elf_Sym *sym; if (!parse_elf(&info, modname)) return; @@ -1238,7 +1239,7 @@ static void read_symbols(char *modname) have_vmlinux = 1; mod->skip = 1; } - +#if 0 license = get_modinfo(info.modinfo, info.modinfo_len, "license"); while (license) { if (license_is_gpl_compatible(license)) @@ -1250,6 +1251,7 @@ static void read_symbols(char *modname) license = get_next_modinfo(info.modinfo, info.modinfo_len, "license", license); } +#endif #if 0 for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { symname = info.strtab + sym->st_name; |