* 2.6.15-git9 build failure when CONFIG_SWAP is not set
@ 2006-01-13 22:31 Ravikiran G Thirumalai
2006-01-14 0:11 ` yhlu
2006-01-14 0:49 ` Christoph Lameter
0 siblings, 2 replies; 3+ messages in thread
From: Ravikiran G Thirumalai @ 2006-01-13 22:31 UTC (permalink / raw)
To: linux-kernel; +Cc: clameter
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
Compile fails when CONFIG_SWAP is not set. Attaching the .config for
reference.
...
CHK include/linux/compile.h
UPD include/linux/compile.h
mm/built-in.o: In function `swap_pages':
mm/mempolicy.c:576: undefined reference to `migrate_pages'
mm/mempolicy.c:577: undefined reference to `putback_lru_pages'
mm/mempolicy.c:578: undefined reference to `putback_lru_pages'
mm/built-in.o: In function `migrate_page_add':
mm/mempolicy.c:558: undefined reference to `isolate_lru_page'
mm/built-in.o: In function `do_mbind':
mm/mempolicy.c:677: undefined reference to `putback_lru_pages'
mm/built-in.o: In function `do_migrate_pages':
mm/mempolicy.c:606: undefined reference to `putback_lru_pages'
make: *** [.tmp_vmlinux1] Error 1
Thanks,
Kiran
[-- Attachment #2: config-2.6.15-git9.gz --]
[-- Type: application/x-gzip, Size: 5491 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.15-git9 build failure when CONFIG_SWAP is not set
2006-01-13 22:31 2.6.15-git9 build failure when CONFIG_SWAP is not set Ravikiran G Thirumalai
@ 2006-01-14 0:11 ` yhlu
2006-01-14 0:49 ` Christoph Lameter
1 sibling, 0 replies; 3+ messages in thread
From: yhlu @ 2006-01-14 0:11 UTC (permalink / raw)
To: Ravikiran G Thirumalai; +Cc: linux-kernel, clameter
Please check anoth thread
"can not compile in the latest git"
YH
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.15-git9 build failure when CONFIG_SWAP is not set
2006-01-13 22:31 2.6.15-git9 build failure when CONFIG_SWAP is not set Ravikiran G Thirumalai
2006-01-14 0:11 ` yhlu
@ 2006-01-14 0:49 ` Christoph Lameter
1 sibling, 0 replies; 3+ messages in thread
From: Christoph Lameter @ 2006-01-14 0:49 UTC (permalink / raw)
To: Ravikiran G Thirumalai; +Cc: linux-kernel
On Fri, 13 Jan 2006, Ravikiran G Thirumalai wrote:
> Compile fails when CONFIG_SWAP is not set. Attaching the .config for
> reference.
-- Patch that was sent to Andrew.
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. Howeverver, calls to migration
functions will fail.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Index: linux-2.6.15/include/linux/swap.h
===================================================================
--- linux-2.6.15.orig/include/linux/swap.h 2006-01-11 12:49:03.000000000 -0800
+++ linux-2.6.15/include/linux/swap.h 2006-01-13 16:41:19.000000000 -0800
@@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-14 0:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-13 22:31 2.6.15-git9 build failure when CONFIG_SWAP is not set Ravikiran G Thirumalai
2006-01-14 0:11 ` yhlu
2006-01-14 0:49 ` Christoph Lameter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox