Skip to content

Commit 56e635a

Browse files
akpm00sfrothwell
authored andcommitted
arch-kunmap-remove-duplicate-kunmap-implementations-fix
fix CONFIG_HIGHMEM=n build on various architectures Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
1 parent 98a856b commit 56e635a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/highmem.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ static inline void *kmap(struct page *page)
5353
}
5454

5555
void kunmap_high(struct page *page);
56+
5657
static inline void kunmap(struct page *page)
5758
{
5859
might_sleep();
@@ -111,6 +112,10 @@ static inline void *kmap(struct page *page)
111112
return page_address(page);
112113
}
113114

115+
static inline void kunmap_high(struct page *page)
116+
{
117+
}
118+
114119
static inline void kunmap(struct page *page)
115120
{
116121
}

0 commit comments

Comments
 (0)