From: Christoph Lameter Some people apparently run CONFIG_NUMA without CONFIG_SWAP. The migration code currently depends on swap. This patch provides a set of inline fallback functions so that the kernel properly compiles. However, calls to migration functions will fail. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- include/linux/swap.h | 5 +++++ 1 files changed, 5 insertions(+) diff -puN include/linux/swap.h~fix-for-config_numa-without-config_swap include/linux/swap.h --- 25/include/linux/swap.h~fix-for-config_numa-without-config_swap Fri Jan 13 17:37:15 2006 +++ 25-akpm/include/linux/swap.h Fri Jan 13 17:37:15 2006 @@ -180,6 +180,11 @@ extern int isolate_lru_page(struct page extern int putback_lru_pages(struct list_head *l); extern int migrate_pages(struct list_head *l, struct list_head *t, struct list_head *moved, struct list_head *failed); +#else +static inline int isolate_lru_page(struct page *p) { return -ENOSYS; } +static inline int putback_lru_pages(struct list_head *l) { return 0; } +static inline int migrate_pages(struct list_head *l, struct list_head *t, + struct list_head *moved, struct list_head *failed) { return -ENOSYS; } #endif #ifdef CONFIG_MMU _