diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2007-12-05 02:45:08 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-05 12:21:18 -0500 |
commit | f8fcc93319faa09272185af100fb24e71b02ab03 (patch) | |
tree | 5696f15acbe0d8ad6895d7eef7566e72bacf8abc /mm | |
parent | 4b01a0b1613beeb01e12c78feb69e98f0da0a69a (diff) |
Add EXPORT_SYMBOL(ksize);
mm/slub.c exports ksize(), but mm/slob.c and mm/slab.c don't.
It's used by binfmt_flat, which can be built as a module.
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slab.c | 1 | ||||
-rw-r--r-- | mm/slob.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -4475,3 +4475,4 @@ size_t ksize(const void *objp) | |||
4475 | 4475 | ||
4476 | return obj_size(virt_to_cache(objp)); | 4476 | return obj_size(virt_to_cache(objp)); |
4477 | } | 4477 | } |
4478 | EXPORT_SYMBOL(ksize); | ||
@@ -495,6 +495,7 @@ size_t ksize(const void *block) | |||
495 | else | 495 | else |
496 | return sp->page.private; | 496 | return sp->page.private; |
497 | } | 497 | } |
498 | EXPORT_SYMBOL(ksize); | ||
498 | 499 | ||
499 | struct kmem_cache { | 500 | struct kmem_cache { |
500 | unsigned int size, align; | 501 | unsigned int size, align; |