parisc: Export flush_cache_page() (needed by lustre)
PATCH 1/1 parisc: Export flush_cache_page() (needed by lustre)
ERROR: "flush_cache_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined!
--- arch/parisc/kernel/cache.c | 1 + 1 file changed, 1 insertion(+)
arch/parisc/kernel/cache.c +1 -0
@@ -602,6 +602,7 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long__flush_cache_page (vma, vmaddr,PFN_PHYS (pfn)); } } +EXPORT_SYMBOL_GPL (flush_cache_page);#ifdef CONFIG_PARISC_TMPALIAS
Signature · 1 line
1.7.9.5
James Bottomley
maintainerQuoted 12 lines · Geert Uytterhoeven
ERROR: "
flush_cache_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined!Signed-off-by Geert Uytterhoeven <[email protected]>--- arch/parisc/kernel/cache.c | 1 + 1 file changed, 1 insertion(+)arch/parisc/kernel/cache.c +0
-0
arch/parisc/kernel/cache.c flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long · line 605
Quoted 4 lines
arch/parisc/kernel/cache.c +1
-0@@ -602,6 +602,7 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long__flush_cache_page (vma, vmaddr,PFN_PHYS (pfn)); } } +EXPORT_SYMBOL_GPL (flush_cache_page);
This is an internal API: no architecture exports this. Whoever is trying to use it needs to use the correct API, so this is the wrong patch.
James
Quoted 6 lines · James Bottomley
Quoted 1 line
+EXPORT_SYMBOL_GPL(flush_cache_page);
This is an internal API: no architecture exports this. Whoever is trying to use it needs to use the correct API, so this is the wrong patch.
I suspect it's copy_{to,from}_user_page being called here:
drivers/staging/lustre/lustre/libcfs/linux/linux-curproc.c:
copy_to_user_page(vma, page, addr,
which we could probably take out of line.
--Kyle
Quoted 9 lines · Kyle McMartin
Quoted 6 lines · James Bottomley
Quoted 1 line
+EXPORT_SYMBOL_GPL(flush_cache_page);
This is an internal API: no architecture exports this. Whoever is trying to use it needs to use the correct API, so this is the wrong patch.
I suspect it's copy_{to,from}_user_page being called here:
Indeed. Sorry, I should have mentioned that.
Quoted 4 lines
drivers/staging/lustre/lustre/libcfs/linux/linux-curproc.c:
copy_to_user_page(vma, page, addr,which we could probably take out of line.
If you want to hide flush_cache_page() for modules, yes.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Quoted 8 lines · James Bottomley
Quoted 7 lines · Geert Uytterhoeven
ERROR: "
flush_cache_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined!Signed-off-by Geert Uytterhoeven <[email protected]>--- arch/parisc/kernel/cache.c | 1 + 1 file changed, 1 insertion(+)
Quoted 13 lines
arch/parisc/kernel/cache.c flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long · line 605
Quoted 9 lines
arch/parisc/kernel/cache.c +1
-0@@ -602,6 +602,7 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long__flush_cache_page (vma, vmaddr,PFN_PHYS (pfn)); } } +EXPORT_SYMBOL_GPL (flush_cache_page);This is an internal API: no architecture exports this. Whoever is trying to use it needs to use the correct API, so this is the wrong patch.
There is a declaration for it in arch/parisc/include/asm/cacheflush.h. There are a bunch of callers in mm. The interface in documented in Documentation/cachetlb.txt. We currently use it in copy_to_user_page and copy_from_user_page.
Dave
Signature · 1 line
John David Anglin [email protected]