diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/modpost.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 9b873ac6ed7b..5c677a3e7487 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -164,7 +164,7 @@ struct symbol { | |||
164 | unsigned int vmlinux:1; /* 1 if symbol is defined in vmlinux */ | 164 | unsigned int vmlinux:1; /* 1 if symbol is defined in vmlinux */ |
165 | unsigned int kernel:1; /* 1 if symbol is from kernel | 165 | unsigned int kernel:1; /* 1 if symbol is from kernel |
166 | * (only for external modules) **/ | 166 | * (only for external modules) **/ |
167 | unsigned int preloaded:1; /* 1 if symbol from Module.symvers */ | 167 | unsigned int preloaded:1; /* 1 if symbol from Module.symvers, or crc */ |
168 | enum export export; /* Type of export */ | 168 | enum export export; /* Type of export */ |
169 | char name[0]; | 169 | char name[0]; |
170 | }; | 170 | }; |
@@ -332,8 +332,11 @@ static void sym_update_crc(const char *name, struct module *mod, | |||
332 | { | 332 | { |
333 | struct symbol *s = find_symbol(name); | 333 | struct symbol *s = find_symbol(name); |
334 | 334 | ||
335 | if (!s) | 335 | if (!s) { |
336 | s = new_symbol(name, mod, export); | 336 | s = new_symbol(name, mod, export); |
337 | /* Don't complain when we find it later. */ | ||
338 | s->preloaded = 1; | ||
339 | } | ||
337 | s->crc = crc; | 340 | s->crc = crc; |
338 | s->crc_valid = 1; | 341 | s->crc_valid = 1; |
339 | } | 342 | } |