linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic()
@ 2012-12-11  8:12 Lin Feng
  2012-12-11 18:39 ` Johannes Weiner
  0 siblings, 1 reply; 3+ messages in thread
From: Lin Feng @ 2012-12-11  8:12 UTC (permalink / raw)
  To: akpm, yinghai, hpa
  Cc: davem, hannes, eric.dumazet, tj, shangw, linux-kernel, linux-mm,
	Lin Feng

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>

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic()
  2012-12-11  8:12 [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic() Lin Feng
@ 2012-12-11 18:39 ` Johannes Weiner
  2012-12-11 19:09   ` Yinghai Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Weiner @ 2012-12-11 18:39 UTC (permalink / raw)
  To: Lin Feng
  Cc: akpm, yinghai, hpa, davem, eric.dumazet, tj, shangw, linux-kernel,
	linux-mm

On Tue, Dec 11, 2012 at 04:12:03PM +0800, Lin Feng wrote:
> Wrapper fucntion reserve_bootmem_generic() currently have no caller,
> so clean it up.
> 
> Signed-off-by: Lin Feng <linfeng@cn.fujitsu.com>

Acked-by: Johannes Weiner <hannes@cmpxchg.org>

--
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic()
  2012-12-11 18:39 ` Johannes Weiner
@ 2012-12-11 19:09   ` Yinghai Lu
  0 siblings, 0 replies; 3+ messages in thread
From: Yinghai Lu @ 2012-12-11 19:09 UTC (permalink / raw)
  To: Johannes Weiner
  Cc: Lin Feng, akpm, hpa, davem, eric.dumazet, tj, shangw,
	linux-kernel, linux-mm

On Tue, Dec 11, 2012 at 10:39 AM, Johannes Weiner <hannes@cmpxchg.org> wrote:
> On Tue, Dec 11, 2012 at 04:12:03PM +0800, Lin Feng wrote:
>> Wrapper fucntion reserve_bootmem_generic() currently have no caller,
>> so clean it up.
>>
>> Signed-off-by: Lin Feng <linfeng@cn.fujitsu.com>
>
> Acked-by: Johannes Weiner <hannes@cmpxchg.org>

yes, this is leftover from

commit 774ea0bcb27f57b6fd521b3b6c43237782fed4b9
Date:   Wed Aug 25 13:39:18 2010 -0700

    x86: Remove old bootmem code

    Requested by Ingo, Thomas and HPA.

    The old bootmem code is no longer necessary, and the transition is
    complete.  Remove it.

--
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-11 19:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11  8:12 [PATCH] mm/bootmem.c: remove unused wrapper function reserve_bootmem_generic() Lin Feng
2012-12-11 18:39 ` Johannes Weiner
2012-12-11 19:09   ` Yinghai Lu

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).