From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: linux-kernel@vger.kernel.org,
Andy Shevchenko <ext-andriy.shevchenko@nokia.com>,
Rusty Russell <rusty@rustcorp.com.au>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH][resend] scripts/mod/modpost.c: fix commentary accordingly to last changes
Date: Mon, 23 Aug 2010 14:52:33 +0800 [thread overview]
Message-ID: <20100823065233.GM5168@cr0.nay.redhat.com> (raw)
In-Reply-To: <1282041400-32667-1-git-send-email-ext-andriy.shevchenko@nokia.com>
On Tue, Aug 17, 2010 at 01:36:40PM +0300, Andy Shevchenko wrote:
>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>
>---
> 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 1ec7158..33122ca 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,
> * .cpuinit.data => __cpudata
> * .memexitconst => __memconst
> * 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)
> {
>@@ -1230,7 +1233,7 @@ static char *sec2annotation(const char *s)
> strcat(p, "data ");
> else
> strcat(p, " ");
>- return r; /* we leak her but we do not care */
>+ return r;
> } else {
> return strdup("");
> }
>--
>1.6.3.3
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2010-08-23 6:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-17 10:36 Andy Shevchenko
2010-08-23 6:52 ` Américo Wang [this message]
2010-08-26 11:56 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100823065233.GM5168@cr0.nay.redhat.com \
--to=xiyou.wangcong@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=andy.shevchenko@gmail.com \
--cc=ext-andriy.shevchenko@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®