summaryrefslogtreecommitdiffstats
path: root/scripts/genksyms/genksyms.c
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-10-08 01:18:35 +0200
committerMichal Marek <mmarek@suse.cz>2011-10-11 12:00:39 +0200
commit2c5925d6b7fedc8f1c325f4f85451f505ec69aca (patch)
tree4b27c58e2487842385e9a736331d97a3c3a9afee /scripts/genksyms/genksyms.c
parentb06fcd6c83c231f51a86448bb33c4cd717fefee8 (diff)
downloadlinux-0-day-2c5925d6b7fedc8f1c325f4f85451f505ec69aca.tar.gz
linux-0-day-2c5925d6b7fedc8f1c325f4f85451f505ec69aca.tar.xz
genksyms: Do not expand internal types
Consider structures, unions and enums defined in the source file as internal and do not expand them. This way, changes to e.g. struct serial_private in drivers/tty/serial/8250_pci.c will not affect the checksum of the pciserial_* exports.
Diffstat (limited to 'scripts/genksyms/genksyms.c')
-rw-r--r--scripts/genksyms/genksyms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/genksyms/genksyms.c b/scripts/genksyms/genksyms.c
index 6d3fda0ce2aeb..8a106499ec4fd 100644
--- a/scripts/genksyms/genksyms.c
+++ b/scripts/genksyms/genksyms.c
@@ -40,7 +40,8 @@ static struct symbol *symtab[HASH_BUCKETS];
static FILE *debugfile;
int cur_line = 1;
-char *cur_filename;
+char *cur_filename, *source_file;
+int in_source_file;
static int flag_debug, flag_dump_defs, flag_reference, flag_dump_types,
flag_preserve, flag_warnings;