Signed-off-by: Dave Hansen --- memhotplug-dave/include/linux/mmigrate.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff -puN include/linux/mmigrate.h~AA-PM-13.2-migrate_page-operation-static_inlines include/linux/mmigrate.h --- memhotplug/include/linux/mmigrate.h~AA-PM-13.2-migrate_page-operation-static_inlines 2005-07-28 13:50:44.000000000 -0700 +++ memhotplug-dave/include/linux/mmigrate.h 2005-07-28 13:50:44.000000000 -0700 @@ -14,13 +14,17 @@ extern struct page * migrate_onepage(str extern int try_to_migrate_pages(struct list_head *); #else -#define generic_migrate_page(p1, p2, fn) (-ENOSYS) +static inline int generic_migrate_page(struct page *page, struct page *newpage, + int (*fn)(struct page *, struct page *)) +{ + return -ENOSYS; +} #endif #ifdef ARCH_HAS_PAGEMIGRATION extern void arch_migrate_page(struct page *, struct page *); #else -#define arch_migrate_page(page, newpage) do { } while(0) +static inline void arch_migrate_page(struct page *page, struct page *newpage) {} #endif #endif /* _LINUX_MEMHOTPLUG_H */ _