summaryrefslogtreecommitdiff
path: root/scripts/genksyms/genksyms.h
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-10-08 03:18:35 +0400
committerMichal Marek <mmarek@suse.cz>2011-10-11 14:00:39 +0400
commit2c5925d6b7fedc8f1c325f4f85451f505ec69aca (patch)
tree4b27c58e2487842385e9a736331d97a3c3a9afee /scripts/genksyms/genksyms.h
parentb06fcd6c83c231f51a86448bb33c4cd717fefee8 (diff)
downloadlinux-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.h')
-rw-r--r--scripts/genksyms/genksyms.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/genksyms/genksyms.h b/scripts/genksyms/genksyms.h
index 7ec52ae3846a..3bffdcaaa274 100644
--- a/scripts/genksyms/genksyms.h
+++ b/scripts/genksyms/genksyms.h
@@ -37,6 +37,7 @@ enum symbol_status {
struct string_list {
struct string_list *next;
enum symbol_type tag;
+ int in_source_file;
char *string;
};
@@ -57,7 +58,8 @@ typedef struct string_list **yystype;
#define YYSTYPE yystype
extern int cur_line;
-extern char *cur_filename;
+extern char *cur_filename, *source_file;
+extern int in_source_file;
struct symbol *find_symbol(const char *name, enum symbol_type ns, int exact);
struct symbol *add_symbol(const char *name, enum symbol_type type,