diff options
author | Andi Kleen <andi@firstfloor.org> | 2010-08-09 20:19:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:44:58 -0400 |
commit | 4e60c86bd9e5a7110ed28874d0b6592186550ae8 (patch) | |
tree | 9fb60e9f49b44b293a0c0c7d9f40e1a354a22b5a /include/linux/highmem.h | |
parent | 627295e492638936e76f3d8fcb1e0a3367b88341 (diff) |
gcc-4.6: mm: fix unused but set warnings
No real bugs, just some dead code and some fixups.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/highmem.h')
-rw-r--r-- | include/linux/highmem.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 67460f010224..e3060ef85b6d 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h | |||
@@ -73,7 +73,11 @@ static inline void *kmap_atomic(struct page *page, enum km_type idx) | |||
73 | } | 73 | } |
74 | #define kmap_atomic_prot(page, idx, prot) kmap_atomic(page, idx) | 74 | #define kmap_atomic_prot(page, idx, prot) kmap_atomic(page, idx) |
75 | 75 | ||
76 | #define kunmap_atomic_notypecheck(addr, idx) do { pagefault_enable(); } while (0) | 76 | static inline void kunmap_atomic_notypecheck(void *addr, enum km_type idx) |
77 | { | ||
78 | pagefault_enable(); | ||
79 | } | ||
80 | |||
77 | #define kmap_atomic_pfn(pfn, idx) kmap_atomic(pfn_to_page(pfn), (idx)) | 81 | #define kmap_atomic_pfn(pfn, idx) kmap_atomic(pfn_to_page(pfn), (idx)) |
78 | #define kmap_atomic_to_page(ptr) virt_to_page(ptr) | 82 | #define kmap_atomic_to_page(ptr) virt_to_page(ptr) |
79 | 83 | ||