Commit c91b26b5 authored by Linus Torvalds's avatar Linus Torvalds

Avoid unused variable warning when kmap() ends up being a no-op.

parent fb4b1e40
...@@ -22,7 +22,7 @@ static inline unsigned int nr_free_highpages(void) { return 0; } ...@@ -22,7 +22,7 @@ static inline unsigned int nr_free_highpages(void) { return 0; }
static inline void *kmap(struct page *page) { return page_address(page); } static inline void *kmap(struct page *page) { return page_address(page); }
#define kunmap(page) do { } while (0) #define kunmap(page) do { (void) (page); } while (0)
#define kmap_atomic(page,idx) kmap(page) #define kmap_atomic(page,idx) kmap(page)
#define kunmap_atomic(page,idx) kunmap(page) #define kunmap_atomic(page,idx) kunmap(page)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment