X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=scripts%2Fmod%2Fmodpost.c;h=10c3fba26f03a34a34cf140d90f8f7f0623a1eb3;hb=69bc8d386aebbd91a6bb44b6d33f77c8dfa9ed8c;hp=24725e50c7b4b181f2b5bce1c9e9fd4ca18774f1;hpb=a4dec04c7ff4307973ba502ce7b27330d9fe04b7;p=linux-2.6-microblaze.git diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 24725e50c7b4..10c3fba26f03 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -2423,19 +2423,6 @@ fail: fatal("parse error in symbol dump file\n"); } -/* For normal builds always dump all symbols. - * For external modules only dump symbols - * that are not read from kernel Module.symvers. - **/ -static int dump_sym(struct symbol *sym) -{ - if (!external_module) - return 1; - if (sym->module->from_dump) - return 0; - return 1; -} - static void write_dump(const char *fname) { struct buffer buf = { }; @@ -2446,7 +2433,7 @@ static void write_dump(const char *fname) for (n = 0; n < SYMBOL_HASH_SIZE ; n++) { symbol = symbolhash[n]; while (symbol) { - if (dump_sym(symbol)) { + if (!symbol->module->from_dump) { namespace = symbol->namespace; buf_printf(&buf, "0x%08x\t%s\t%s\t%s\t%s\n", symbol->crc, symbol->name,