summaryrefslogtreecommitdiffstats
path: root/drivers/sbus
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2014-02-13 16:15:01 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-19 19:49:48 -0500
commita56b072fa357ab076cb6c9b52e58fbe3c709da10 (patch)
tree1b752b8efc3cdbf0641d75c3105dd681d7abb563 /drivers/sbus
parent4f6500fff5f7644a03c46728fd7ef0f62fa6940b (diff)
downloadop-kernel-dev-a56b072fa357ab076cb6c9b52e58fbe3c709da10.zip
op-kernel-dev-a56b072fa357ab076cb6c9b52e58fbe3c709da10.tar.gz
sparc32: make copy_to/from_user_page() usable from modular code
While copy_to/from_user_page() users are uncommon, there is one in drivers/staging/lustre/lustre/libcfs/linux/linux-curproc.c which leads to the following: ERROR: "sparc32_cachetlb_ops" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined! during routine allmodconfig build coverage. The reason this happens is as follows: In arch/sparc/include/asm/cacheflush_32.h we have: #define flush_cache_page(vma,addr,pfn) \ sparc32_cachetlb_ops->cache_page(vma, addr) #define copy_to_user_page(vma, page, vaddr, dst, src, len) \ do { \ flush_cache_page(vma, vaddr, page_to_pfn(page));\ memcpy(dst, src, len); \ } while (0) #define copy_from_user_page(vma, page, vaddr, dst, src, len) \ do { \ flush_cache_page(vma, vaddr, page_to_pfn(page));\ memcpy(dst, src, len); \ } while (0) However, sparc32_cachetlb_ops isn't exported and hence the error. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud