diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-02-20 16:57:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-20 20:10:13 -0500 |
commit | 5ec553a90448b3edbd26c1acc72464f877614bfa (patch) | |
tree | e10d79ac6d68de9b3040b1e6e0451943ee617d89 /include | |
parent | 8af5e2eb3cc4450ffba9496c875beac41bf4f4f8 (diff) |
[PATCH] mincore warning fix
allnoconfig:
mm/mincore.c: In function 'do_mincore':
mm/mincore.c:122: warning: unused variable 'entry'
Yet another entry in the why-macros-are-wrong encyclopedia.
Cc: Christoph Lameter <clameter@engr.sgi.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/swapops.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/swapops.h b/include/linux/swapops.h index ec639aa3a1d3..ceb6cc5ceebb 100644 --- a/include/linux/swapops.h +++ b/include/linux/swapops.h | |||
@@ -108,7 +108,10 @@ extern void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, | |||
108 | #else | 108 | #else |
109 | 109 | ||
110 | #define make_migration_entry(page, write) swp_entry(0, 0) | 110 | #define make_migration_entry(page, write) swp_entry(0, 0) |
111 | #define is_migration_entry(swp) 0 | 111 | static inline int is_migration_entry(swp_entry_t swp) |
112 | { | ||
113 | return 0; | ||
114 | } | ||
112 | #define migration_entry_to_page(swp) NULL | 115 | #define migration_entry_to_page(swp) NULL |
113 | static inline void make_migration_entry_read(swp_entry_t *entryp) { } | 116 | static inline void make_migration_entry_read(swp_entry_t *entryp) { } |
114 | static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, | 117 | static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, |