aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Shevchenko <andy.shevchenko@gmail.com>2010-08-17 06:36:40 -0400
committerMichal Marek <mmarek@suse.cz>2010-08-26 07:55:23 -0400
commitcbcf14a942eb06d031628046739b983e84b383bf (patch)
tree13a6abc7865c17c8a7907de78ff65fc0f1f38990 /scripts
parent55c640c3abff301eed5ee11c34a40bfe043c8c2d (diff)
scripts/mod/modpost.c: fix commentary accordingly to last changes
The last commits 37ed19d5cce35a40d3913cf9aa208ce9f60db3d7 5003bab82d56754b27be01eef24495a02e00039d have introduced new behaviour of sec2annotation() method. However, the commentary inside the method was left as before. Let's fix it accordingly. Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Andrew Morton <akpm@linux-foundation.org> Acked-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index c827309c29cf..859bee4972e9 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1193,6 +1193,9 @@ static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr,
1193 * .cpuinit.data => __cpudata 1193 * .cpuinit.data => __cpudata
1194 * .memexitconst => __memconst 1194 * .memexitconst => __memconst
1195 * etc. 1195 * etc.
1196 *
1197 * The memory of returned value has been allocated on a heap. The user of this
1198 * method should free it after usage.
1196*/ 1199*/
1197static char *sec2annotation(const char *s) 1200static char *sec2annotation(const char *s)
1198{ 1201{
@@ -1215,7 +1218,7 @@ static char *sec2annotation(const char *s)
1215 strcat(p, "data "); 1218 strcat(p, "data ");
1216 else 1219 else
1217 strcat(p, " "); 1220 strcat(p, " ");
1218 return r; /* we leak her but we do not care */ 1221 return r;
1219 } else { 1222 } else {
1220 return ""; 1223 return "";
1221 } 1224 }