From: Lin Feng <linfeng@cn.fujitsu.com>
To: akpm@linux-foundation.org, yinghai@kernel.org, hpa@zytor.com
Cc: davem@davemloft.net, hannes@cmpxchg.org, eric.dumazet@gmail.com,
tj@kernel.org, shangw@linux.vnet.ibm.com,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
Lin Feng <linfeng@cn.fujitsu.com>
Subject: [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic()
Date: Tue, 11 Dec 2012 16:12:03 +0800 [thread overview]
Message-ID: <1355213523-15698-1-git-send-email-linfeng@cn.fujitsu.com> (raw)
Wrapper fucntion reserve_bootmem_generic() currently have no caller,
so clean it up.
Signed-off-by: Lin Feng <linfeng@cn.fujitsu.com>
---
include/linux/bootmem.h | 3 ---
mm/bootmem.c | 6 ------
2 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/include/linux/bootmem.h b/include/linux/bootmem.h
index 6d6795d..bfc742c 100644
--- a/include/linux/bootmem.h
+++ b/include/linux/bootmem.h
@@ -137,9 +137,6 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat,
#define alloc_bootmem_low_pages_node(pgdat, x) \
__alloc_bootmem_low_node(pgdat, x, PAGE_SIZE, 0)
-extern int reserve_bootmem_generic(unsigned long addr, unsigned long size,
- int flags);
-
#ifdef CONFIG_HAVE_ARCH_ALLOC_REMAP
extern void *alloc_remap(int nid, unsigned long size);
#else
diff --git a/mm/bootmem.c b/mm/bootmem.c
index f468185..2812730 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -439,12 +439,6 @@ int __init reserve_bootmem(unsigned long addr, unsigned long size,
return mark_bootmem(start, end, 1, flags);
}
-int __weak __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
- int flags)
-{
- return reserve_bootmem(phys, len, flags);
-}
-
static unsigned long __init align_idx(struct bootmem_data *bdata,
unsigned long idx, unsigned long step)
{
--
1.7.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2012-12-11 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 8:12 Lin Feng [this message]
2012-12-11 18:39 ` [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic() Johannes Weiner
2012-12-11 19:09 ` Yinghai Lu
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=1355213523-15698-1-git-send-email-linfeng@cn.fujitsu.com \
--to=linfeng@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=hannes@cmpxchg.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shangw@linux.vnet.ibm.com \
--cc=tj@kernel.org \
--cc=yinghai@kernel.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).