[PATCH] Fix for CONFIG_NUMA without CONFIG_SWAP

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 <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Christoph Lameter and committed by Linus Torvalds 852cf918 eed6565f

+5
+5
include/linux/swap.h
··· 180 180 extern int putback_lru_pages(struct list_head *l); 181 181 extern int migrate_pages(struct list_head *l, struct list_head *t, 182 182 struct list_head *moved, struct list_head *failed); 183 + #else 184 + static inline int isolate_lru_page(struct page *p) { return -ENOSYS; } 185 + static inline int putback_lru_pages(struct list_head *l) { return 0; } 186 + static inline int migrate_pages(struct list_head *l, struct list_head *t, 187 + struct list_head *moved, struct list_head *failed) { return -ENOSYS; } 183 188 #endif 184 189 185 190 #ifdef CONFIG_MMU