diff options
author | Luke Yang <luke.adi@gmail.com> | 2006-03-02 18:35:31 +0800 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-03-08 18:33:16 +0100 |
commit | f7b05e64bdb2fcc4b2dc94a4bd9426adc70c9599 (patch) | |
tree | 04becffd433c54a0f5a94c32ee7f23d40aff251b /scripts/mod/modpost.c | |
parent | 4f1933620f57145212cdbb1ac6ce099eeeb21c5a (diff) | |
download | linux-stable-f7b05e64bdb2fcc4b2dc94a4bd9426adc70c9599.tar.gz linux-stable-f7b05e64bdb2fcc4b2dc94a4bd9426adc70c9599.tar.bz2 linux-stable-f7b05e64bdb2fcc4b2dc94a4bd9426adc70c9599.zip |
kbuild: Fix bug in crc symbol generating of kernel and modules
The scripts/genksyms/genksyms.c uses hardcoded "__crc_" prefix for
crc symbols in kernel and modules. The prefix should be replaced by
"MODULE_SYMBOL_PREFIX##__crc_" otherwise there will be warnings when
MODULE_SYMBOL_PREFIX is not NULL.
I am sorry my last patch for this issue is actually wrong. I revert
it in this patch.
Signed-off-by: Luke Yang <luke.adi@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod/modpost.c')
-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 e2bf4c927dd3..30f3ac8eb43c 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -346,8 +346,8 @@ static void parse_elf_finish(struct elf_info *info) release_file(info->hdr, info->size); } -#define CRC_PFX "__crc_" -#define KSYMTAB_PFX "__ksymtab_" +#define CRC_PFX MODULE_SYMBOL_PREFIX "__crc_" +#define KSYMTAB_PFX MODULE_SYMBOL_PREFIX "__ksymtab_" static void handle_modversions(struct module *mod, struct elf_info *info, Elf_Sym *sym, const char *symname) |