]> Git Repo - linux.git/commitdiff
[PATCH] mincore warning fix
authorAndrew Morton <[email protected]>
Tue, 20 Feb 2007 21:57:50 +0000 (13:57 -0800)
committerLinus Torvalds <[email protected]>
Wed, 21 Feb 2007 01:10:13 +0000 (17:10 -0800)
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 <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/swapops.h

index ec639aa3a1d379aa724938933195afd213a7789c..ceb6cc5ceebbee56b69107daad587c512987794f 100644 (file)
@@ -108,7 +108,10 @@ extern void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd,
 #else
 
 #define make_migration_entry(page, write) swp_entry(0, 0)
-#define is_migration_entry(swp) 0
+static inline int is_migration_entry(swp_entry_t swp)
+{
+       return 0;
+}
 #define migration_entry_to_page(swp) NULL
 static inline void make_migration_entry_read(swp_entry_t *entryp) { }
 static inline void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd,
This page took 0.063685 seconds and 4 git commands to generate.