public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@stusta.de>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] mm/slab.c: make kmem_cache_alloc_node static
Date: Sun, 27 Mar 2005 16:33:57 +0200	[thread overview]
Message-ID: <20050327143357.GD4285@stusta.de> (raw)

kmem_cache_alloc_node isn't used outside of this file.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

This patch was already sent on:
- 6 Mar 2005

 include/linux/slab.h |    8 --------
 mm/slab.c            |   12 ++++++++++--
 2 files changed, 10 insertions(+), 10 deletions(-)

--- linux-2.6.11-mm1-full/include/linux/slab.h.old	2005-03-06 15:40:31.000000000 +0100
+++ linux-2.6.11-mm1-full/include/linux/slab.h	2005-03-06 15:40:43.000000000 +0100
@@ -62,14 +62,6 @@
 extern int kmem_cache_destroy(kmem_cache_t *);
 extern int kmem_cache_shrink(kmem_cache_t *);
 extern void *kmem_cache_alloc(kmem_cache_t *, int);
-#ifdef CONFIG_NUMA
-extern void *kmem_cache_alloc_node(kmem_cache_t *, int);
-#else
-static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, int node)
-{
-	return kmem_cache_alloc(cachep, GFP_KERNEL);
-}
-#endif
 extern void kmem_cache_free(kmem_cache_t *, void *);
 extern unsigned int kmem_cache_size(kmem_cache_t *);
 
--- linux-2.6.11-mm1-full/mm/slab.c.old	2005-03-06 15:40:38.000000000 +0100
+++ linux-2.6.11-mm1-full/mm/slab.c	2005-03-06 15:41:06.000000000 +0100
@@ -575,6 +575,15 @@
 static void enable_cpucache (kmem_cache_t *cachep);
 static void cache_reap (void *unused);
 
+#ifdef CONFIG_NUMA
+static void *kmem_cache_alloc_node(kmem_cache_t *, int);
+#else
+static inline void *kmem_cache_alloc_node(kmem_cache_t *cachep, int node)
+{
+	return kmem_cache_alloc(cachep, GFP_KERNEL);
+}
+#endif
+
 static inline void ** ac_entry(struct array_cache *ac)
 {
 	return (void**)(ac+1);
@@ -2359,7 +2368,7 @@
  * and can sleep. And it will allocate memory on the given node, which
  * can improve the performance for cpu bound structures.
  */
-void *kmem_cache_alloc_node(kmem_cache_t *cachep, int nodeid)
+static void *kmem_cache_alloc_node(kmem_cache_t *cachep, int nodeid)
 {
 	int loop;
 	void *objp;
@@ -2431,7 +2440,6 @@
 					__builtin_return_address(0));
 	return objp;
 }
-EXPORT_SYMBOL(kmem_cache_alloc_node);
 
 #endif
 


             reply	other threads:[~2005-03-27 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-27 14:33 Adrian Bunk [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-03-06 19:20 [2.6 patch] mm/slab.c: make kmem_cache_alloc_node static Adrian Bunk

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=20050327143357.GD4285@stusta.de \
    --to=bunk@stusta.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.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