@@ -603,7 +603,6 @@ void lnet_me_unlink(struct lnet_me *me);
void lnet_md_unlink(struct lnet_libmd *md);
void lnet_md_deconstruct(struct lnet_libmd *lmd, struct lnet_event *ev);
-struct page *lnet_kvaddr_to_page(unsigned long vaddr);
int lnet_cpt_of_md(struct lnet_libmd *md, unsigned int offset);
void lnet_register_lnd(struct lnet_lnd *lnd);
@@ -85,15 +85,6 @@ lnet_md_unlink(struct lnet_libmd *md)
kfree(md);
}
-struct page *lnet_kvaddr_to_page(unsigned long vaddr)
-{
- if (is_vmalloc_addr((void *)vaddr))
- return vmalloc_to_page((void *)vaddr);
-
- return kmap_to_page((void *)vaddr);
-}
-EXPORT_SYMBOL(lnet_kvaddr_to_page);
-
int lnet_cpt_of_md(struct lnet_libmd *md, unsigned int offset)
{
int cpt = CFS_CPT_ANY;
This function is no longer used, so discard it. Signed-off-by: NeilBrown <neilb@suse.com> --- .../staging/lustre/include/linux/lnet/lib-lnet.h | 1 - drivers/staging/lustre/lnet/lnet/lib-md.c | 9 --------- 2 files changed, 10 deletions(-)