linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] slob: statify slob_alloc_node() and remove symbol
@ 2015-04-09 20:44 Fabian Frederick
  2015-04-09 20:50 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2015-04-09 20:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: Fabian Frederick, Christoph Lameter, Pekka Enberg,
	David Rientjes, Joonsoo Kim, Andrew Morton, linux-mm

slob_alloc_node() is only used in slob.c
This patch removes EXPORT_SYMBOL and statify function

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 mm/slob.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mm/slob.c b/mm/slob.c
index 6d55710..495df8e 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -532,7 +532,7 @@ int __kmem_cache_create(struct kmem_cache *c, unsigned long flags)
 	return 0;
 }
 
-void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
+static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
 {
 	void *b;
 
@@ -558,7 +558,6 @@ void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
 	kmemleak_alloc_recursive(b, c->size, 1, c->flags, flags);
 	return b;
 }
-EXPORT_SYMBOL(slob_alloc_node);
 
 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags)
 {
-- 
1.9.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	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1 linux-next] slob: statify slob_alloc_node() and remove symbol
  2015-04-09 20:44 [PATCH 1/1 linux-next] slob: statify slob_alloc_node() and remove symbol Fabian Frederick
@ 2015-04-09 20:50 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2015-04-09 20:50 UTC (permalink / raw)
  To: Fabian Frederick
  Cc: linux-kernel, Christoph Lameter, Pekka Enberg, David Rientjes,
	Joonsoo Kim, linux-mm

On Thu,  9 Apr 2015 22:44:07 +0200 Fabian Frederick <fabf@skynet.be> wrote:

> slob_alloc_node() is only used in slob.c
> This patch removes EXPORT_SYMBOL and statify function
> 

Call me old-fashioned, but I refuse to make "statify" a word ;)


: From: Fabian Frederick <fabf@skynet.be>
: Subject: slob: make slob_alloc_node() static and remove EXPORT_SYMBOL()
: 
: slob_alloc_node() is only used in slob.c.  Remove the EXPORT_SYMBOL and
: make slob_alloc_node() static.

--
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] 2+ messages in thread

end of thread, other threads:[~2015-04-09 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 20:44 [PATCH 1/1 linux-next] slob: statify slob_alloc_node() and remove symbol Fabian Frederick
2015-04-09 20:50 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox