Skip to content

Commit

Permalink
mm: Export symbol ksize()
Browse files Browse the repository at this point in the history
Commit 7b2cd92 ("crypto: api - Fix
zeroing on free") added modular user of ksize(). Export that to fix
crypto.ko compilation.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
  • Loading branch information
Kirill A. Shutemov authored and Pekka Enberg committed Feb 12, 2009
1 parent b578f3f commit b1aabec
Show file tree
Hide file tree
Showing 3 changed files with 3 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 @@ -4457,3 +4457,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 @@ -521,6 +521,7 @@ size_t ksize(const void *block)
} else
return sp->page.private;
}
EXPORT_SYMBOL(ksize);

struct kmem_cache {
unsigned int size, align;
Expand Down
1 change: 1 addition & 0 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2736,6 +2736,7 @@ size_t ksize(const void *object)
*/
return s->size;
}
EXPORT_SYMBOL(ksize);

void kfree(const void *x)
{
Expand Down

0 comments on commit b1aabec

Please sign in to comment.