From: Andrew Morton <akpm@linux-foundation.org>
To: "Wang, Matt" <Matt.Wang@Dell.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: Make __memblock_free_early a wrapper of memblock_free rather dup it
Date: Wed, 21 Nov 2018 21:27:40 -0800 [thread overview]
Message-ID: <20181121212740.84884a0c4532334d81fc6961@linux-foundation.org> (raw)
In-Reply-To: <C8ECE1B7A767434691FEEFA3A01765D72AFB8E78@MX203CL03.corp.emc.com>
On Thu, 22 Nov 2018 04:01:53 +0000 "Wang, Matt" <Matt.Wang@Dell.com> wrote:
> Subject: [PATCH] Make __memblock_free_early a wrapper of memblock_free rather
> than dup it
>
> Signed-off-by: Wentao Wang <witallwang@gmail.com>
> ---
> mm/memblock.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/mm/memblock.c b/mm/memblock.c
> index 9a2d5ae..08bf136 100644
> --- a/mm/memblock.c
> +++ b/mm/memblock.c
> @@ -1546,12 +1546,7 @@ void * __init memblock_alloc_try_nid(
> */
> void __init __memblock_free_early(phys_addr_t base, phys_addr_t size)
> {
> - phys_addr_t end = base + size - 1;
> -
> - memblock_dbg("%s: [%pa-%pa] %pF\n",
> - __func__, &base, &end, (void *)_RET_IP_);
> - kmemleak_free_part_phys(base, size);
> - memblock_remove_range(&memblock.reserved, base, size);
> + memblock_free(base, size);
> }
hm, I suppose so. The debug messaging becomes less informative but the
duplication is indeed irritating and if we really want to show the
different caller info in the messages, we could do it in a smarter
fashion.
next prev parent reply other threads:[~2018-11-22 5:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-22 4:01 Make __memblock_free_early a wrapper of memblock_free rather dup it Wang, Matt
2018-11-22 5:27 ` Andrew Morton [this message]
2018-11-25 10:29 ` Mike Rapoport
2018-11-26 2:25 ` Wang, Matt
2018-11-26 7:13 ` Mike Rapoport
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=20181121212740.84884a0c4532334d81fc6961@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=Matt.Wang@Dell.com \
--cc=linux-mm@kvack.org \
/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;
as well as URLs for NNTP newsgroup(s).