linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Add EXPORT_SYMBOL(ksize);
Date: Sun, 2 Dec 2007 17:43:39 +0900	[thread overview]
Message-ID: <200712021743.GBH12983.FHOFVJOMFLOStQ@I-love.SAKURA.ne.jp> (raw)


mm/slub.c exports ksize(), but mm/slob.c and mm/slab.c don't. I don't know why.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>

---
 mm/slab.c |    1 +
 mm/slob.c |    1 +
 2 files changed, 2 insertions(+)

--- linux-2.6-mm.orig/mm/slab.c
+++ linux-2.6-mm/mm/slab.c
@@ -4479,3 +4479,4 @@ size_t ksize(const void *objp)
 
 	return obj_size(virt_to_cache(objp));
 }
+EXPORT_SYMBOL(ksize);
--- linux-2.6-mm.orig/mm/slob.c
+++ linux-2.6-mm/mm/slob.c
@@ -495,6 +495,7 @@ size_t ksize(const void *block)
 	else
 		return sp->page.private;
 }
+EXPORT_SYMBOL(ksize);
 
 struct kmem_cache {
 	unsigned int size, align;

             reply	other threads:[~2007-12-02  8:43 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-02  8:43 Tetsuo Handa [this message]
2007-12-02 13:48 ` [PATCH] Add EXPORT_SYMBOL(ksize); Adrian Bunk
2007-12-02 21:34   ` Tetsuo Handa
2007-12-02 21:46     ` Arnaldo Carvalho de Melo
2007-12-03 11:41       ` Tetsuo Handa
2007-12-03 13:57         ` Adrian Bunk
2007-12-03 14:07           ` Pekka Enberg
2007-12-03 21:19             ` Matt Mackall
2007-12-03 23:34   ` Andrew Morton
2007-12-06 21:02     ` Adrian Bunk
2007-12-06 21:07       ` Adrian Bunk
2007-12-11 10:46       ` Bernd Schmidt
2007-12-11 11:16         ` Greg Ungerer

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=200712021743.GBH12983.FHOFVJOMFLOStQ@I-love.SAKURA.ne.jp \
    --to=penguin-kernel@i-love.sakura.ne.jp \
    --cc=akpm@linux-foundation.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;
as well as URLs for NNTP newsgroup(s).