kbuild: genksyms: Include extern information in dumps
authorAndreas Gruenbacher <agruen@suse.de>
Mon, 21 Jul 2008 02:28:25 +0000 (04:28 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 31 Jul 2008 21:01:31 +0000 (23:01 +0200)
The extern flag currently is not included in type dump files
(genksyms --dump-types). Include that flag there for completeness.

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/genksyms/genksyms.c

index 4f8a3007e45706117a74fe316a28c28c7e46486f..c249274e005a93144c29759d877419a3d196423e 100644 (file)
@@ -545,6 +545,8 @@ int main(int argc, char **argv)
                        }
                        fputs(sym->name, dumpfile);
                        putc(' ', dumpfile);
+                       if (sym->is_extern)
+                               fputs("extern ", dumpfile);
                        print_list(dumpfile, sym->defn);
                        putc('\n', dumpfile);