diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 18:13:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-28 18:13:55 -0400 |
commit | c9e2a72ff1acfdffdecb338b3d997f90c507e665 (patch) | |
tree | 9be4b7e6a1cb90ffa86148a3937021118a5913c0 /scripts/mod/modpost.c | |
parent | 9aca0e7c8c3a8f1fa6e3058abc5465b0509f0f8e (diff) | |
parent | d63f6d1b4d3ad0d88685a5f8eb1c3cac01ddd0db (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
initramfs: Fix build break on symbol-prefixed archs
initramfs: fix initramfs size calculation
initramfs: generalize initramfs_data.xxx.S variants
scripts/kallsyms: Enable error messages while hush up unnecessary warnings
scripts/setlocalversion: update comment
kbuild: Use a single clean rule for kernel and external modules
kbuild: Do not run make clean in $(srctree)
scripts/mod/modpost.c: fix commentary accordingly to last changes
kbuild: Really don't clean bounds.h and asm-offsets.h
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 1ec7158b6c1f..33122ca04e7c 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1208,6 +1208,9 @@ static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr, | |||
1208 | * .cpuinit.data => __cpudata | 1208 | * .cpuinit.data => __cpudata |
1209 | * .memexitconst => __memconst | 1209 | * .memexitconst => __memconst |
1210 | * etc. | 1210 | * etc. |
1211 | * | ||
1212 | * The memory of returned value has been allocated on a heap. The user of this | ||
1213 | * method should free it after usage. | ||
1211 | */ | 1214 | */ |
1212 | static char *sec2annotation(const char *s) | 1215 | static char *sec2annotation(const char *s) |
1213 | { | 1216 | { |
@@ -1230,7 +1233,7 @@ static char *sec2annotation(const char *s) | |||
1230 | strcat(p, "data "); | 1233 | strcat(p, "data "); |
1231 | else | 1234 | else |
1232 | strcat(p, " "); | 1235 | strcat(p, " "); |
1233 | return r; /* we leak her but we do not care */ | 1236 | return r; |
1234 | } else { | 1237 | } else { |
1235 | return strdup(""); | 1238 | return strdup(""); |
1236 | } | 1239 | } |