Skip to content

Commit

Permalink
Add EXPORT_SYMBOL(ksize);
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tetsuo Handa authored and Linus Torvalds committed Dec 5, 2007
1 parent 4b01a0b commit f8fcc93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -4475,3 +4475,4 @@ size_t ksize(const void *objp)

return obj_size(virt_to_cache(objp));
}
EXPORT_SYMBOL(ksize);
1 change: 1 addition & 0 deletions mm/slob.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8fcc93

Please sign in to comment.