Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 143bc180 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: highmem: Add definitions for kmap_atomic_flush_unused"

parents 162b0bd8 2a71f91c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -40,6 +40,12 @@ extern unsigned long totalhigh_pages;

void kmap_flush_unused(void);

#ifdef CONFIG_ARCH_WANT_KMAP_ATOMIC_FLUSH
void kmap_atomic_flush_unused(void);
#else
static inline void kmap_atomic_flush_unused(void) { }
#endif

struct page *kmap_to_page(void *addr);

#else /* CONFIG_HIGHMEM */
@@ -81,6 +87,7 @@ static inline void __kunmap_atomic(void *addr)
#define kmap_atomic_pfn(pfn)	kmap_atomic(pfn_to_page(pfn))

#define kmap_flush_unused()	do {} while(0)
#define kmap_atomic_flush_unused()	do {} while (0)
#endif

#endif /* CONFIG_HIGHMEM */