export the function kmap_flush_unused. Scenario: When graphic driver need high memory spece, we use alloc_pages() to allocate. But if the allocated page has just been mapped in the KMAP space(like first kmap then kunmap) and no flush page happened on PKMAP, the page virtual address is not NULL.Then when we get that page and set page attribute like set_memory_uc and set_memory_wc, we hit error. fix: For that scenario,when we get the allocated page and its virtual address is not NULL, we would like first flush that page. So need export that function kmap_flush_unused. Signed-off-by: sha, ruibin --- mm/highmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/highmem.c b/mm/highmem.c index b32b70c..511299b 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -156,6 +156,7 @@ void kmap_flush_unused(void) flush_all_zero_pkmaps(); unlock_kmap(); } +EXPORT_SYMBOL(kmap_flush_unused); static inline unsigned long map_new_virtual(struct page *page) { -- 1.7.9.5 Best Regards --------------------------------------------------------------- Sha, Rui bin ( Robin ) +86 13817890945 Android System Integration Shanghai