Skip to content

Commit

Permalink
[PATCH] mincore warning fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akpm00 authored and Linus Torvalds committed Feb 21, 2007
1 parent 8af5e2e commit 5ec553a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/linux/swapops.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5ec553a

Please sign in to comment.