diff options
author | Luke Yang <luke.adi@gmail.com> | 2005-12-20 21:27:23 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-12-25 15:18:11 -0500 |
commit | 9572b28faf72859c6b91891c627870cfa282d19d (patch) | |
tree | ffb70ad557c91ea836eaab5bde0fbecc1f1d8d96 /scripts/mod | |
parent | 9cc5d74c847dd3a9ea121b5bbca07bd5791c54ee (diff) |
kbuild: Fix crc-error warning on modules
This is the patch for the following issue:
In include/linux/module.h, "__crc_" and "__ksymtab_" are hard
coded to be the prefix for some kinds of symbols (CRC symbol and
ksymtab section). But in script /mod/modpost.c,
MODULE_SYMBOL_PREFIX##"__crc_" is used as the prefix to search CRC
symbols. So if an architecture (such as h8300 or Blackfin) defines
MODULE_SYMBOL_PREFIX as not NULL ("_"), modpost will always warn about
"no invalid crc".
And it is the same with KSYMTAB_PFX.
Signed-off-by: Luke Yang <luke.adi@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 3bed09e625c0..8ce5a6318684 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -326,8 +326,8 @@ parse_elf_finish(struct elf_info *info) | |||
326 | release_file(info->hdr, info->size); | 326 | release_file(info->hdr, info->size); |
327 | } | 327 | } |
328 | 328 | ||
329 | #define CRC_PFX MODULE_SYMBOL_PREFIX "__crc_" | 329 | #define CRC_PFX "__crc_" |
330 | #define KSYMTAB_PFX MODULE_SYMBOL_PREFIX "__ksymtab_" | 330 | #define KSYMTAB_PFX "__ksymtab_" |
331 | 331 | ||
332 | void | 332 | void |
333 | handle_modversions(struct module *mod, struct elf_info *info, | 333 | handle_modversions(struct module *mod, struct elf_info *info, |