scripts/mod/modpost.c: fix commentary accordingly to last changes
The last commits37ed19d5cc
5003bab82d
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>
This commit is contained in:
parent
55c640c3ab
commit
cbcf14a942
|
@ -1193,6 +1193,9 @@ static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr,
|
||||||
* .cpuinit.data => __cpudata
|
* .cpuinit.data => __cpudata
|
||||||
* .memexitconst => __memconst
|
* .memexitconst => __memconst
|
||||||
* etc.
|
* etc.
|
||||||
|
*
|
||||||
|
* The memory of returned value has been allocated on a heap. The user of this
|
||||||
|
* method should free it after usage.
|
||||||
*/
|
*/
|
||||||
static char *sec2annotation(const char *s)
|
static char *sec2annotation(const char *s)
|
||||||
{
|
{
|
||||||
|
@ -1215,7 +1218,7 @@ static char *sec2annotation(const char *s)
|
||||||
strcat(p, "data ");
|
strcat(p, "data ");
|
||||||
else
|
else
|
||||||
strcat(p, " ");
|
strcat(p, " ");
|
||||||
return r; /* we leak her but we do not care */
|
return r;
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue