arch: score: Export necessary symbols in related files
authorChen Gang <gang.chen.5i5j@gmail.com>
Wed, 9 Jul 2014 08:48:45 +0000 (16:48 +0800)
committerLennox Wu <lennox.wu@gmail.com>
Sat, 4 Oct 2014 17:18:16 +0000 (01:18 +0800)
'csum_partial_copy_from_user' and 'flush_dcache_page' are also needed by
outside modules, so need export them in the related files.

The related error (with allmodconfig under score):

    MODPOST 1365 modules
  ERROR: "csum_partial_copy_from_user" [net/rxrpc/af-rxrpc.ko] undefined!
  ERROR: "flush_dcache_page" [net/sunrpc/sunrpc.ko] undefined!

Acked-by: Lennox Wu <lennox.wu@gmail.com>
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
arch/score/lib/checksum_copy.c
arch/score/mm/cache.c

index 04565dd3ded84734fac2e864b1e50f35292c1b91..9b770b30e8a50e6f70a0988e46c26b39e71d820a 100644 (file)
@@ -50,3 +50,4 @@ unsigned int csum_partial_copy_from_user(const char *src, char *dst,
 
        return csum_partial(dst, len, sum);
 }
+EXPORT_SYMBOL(csum_partial_copy_from_user);
index f85ec1a7c88e85c683a0cd2faba78513d1b15d0c..be9104159c41578caffc85cd0597d157c07207c5 100644 (file)
@@ -72,6 +72,7 @@ void flush_dcache_page(struct page *page)
        addr = (unsigned long) page_address(page);
        flush_data_cache_page(addr);
 }
+EXPORT_SYMBOL(flush_dcache_page);
 
 /* called by update_mmu_cache. */
 void __update_cache(struct vm_area_struct *vma, unsigned long address,