linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* can not compile in the latest git
@ 2006-01-11 18:21 yhlu
  2006-01-11 20:13 ` Christoph Lameter
  0 siblings, 1 reply; 6+ messages in thread
From: yhlu @ 2006-01-11 18:21 UTC (permalink / raw)
  To: linux kernel mailing list

the functions are in
#if CONFIG_MIGRATION
...

mm/built-in.o(.text+0x16fc3): In function `check_pte_range':
mempolicy.c: undefined reference to `isolate_lru_page'
mm/built-in.o(.text+0x189a6): In function `swap_pages':
mempolicy.c: undefined reference to `migrate_pages'
mm/built-in.o(.text+0x189b3):mempolicy.c: undefined reference to
`putback_lru_pages'
mm/built-in.o(.text+0x189bd):mempolicy.c: undefined reference to
`putback_lru_pages'
mm/built-in.o(.text+0x18c98): In function `do_mbind':
: undefined reference to `putback_lru_pages'
mm/built-in.o(.text+0x18efe): In function `do_migrate_pages':
: undefined reference to `putback_lru_pages'
make: *** [.tmp_vmlinux1] Error 1


YH

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: can not compile in the latest git
  2006-01-11 18:21 can not compile in the latest git yhlu
@ 2006-01-11 20:13 ` Christoph Lameter
  2006-01-12 20:36   ` yhlu
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Lameter @ 2006-01-11 20:13 UTC (permalink / raw)
  To: yhlu; +Cc: linux kernel mailing list

On Wed, 11 Jan 2006, yhlu wrote:

> : undefined reference to `putback_lru_pages'
> make: *** [.tmp_vmlinux1] Error 1

Please post your .config file.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: can not compile in the latest git
  2006-01-11 20:13 ` Christoph Lameter
@ 2006-01-12 20:36   ` yhlu
  2006-01-13  3:59     ` Christoph Lameter
  0 siblings, 1 reply; 6+ messages in thread
From: yhlu @ 2006-01-12 20:36 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux kernel mailing list

It turns out, if I disable "Support for paging of anonymous memory
(swap)" --- SWAP

the CONFIG_MIGRATION will disappear from the .config

the mm/mempolicy.c may need some #if CONFIG_MIRGRATION to comment out
these calling.

YH

On 1/11/06, Christoph Lameter <clameter@engr.sgi.com> wrote:
> On Wed, 11 Jan 2006, yhlu wrote:
>
> > : undefined reference to `putback_lru_pages'
> > make: *** [.tmp_vmlinux1] Error 1
>
> Please post your .config file.
>
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: can not compile in the latest git
  2006-01-12 20:36   ` yhlu
@ 2006-01-13  3:59     ` Christoph Lameter
  2006-01-13 17:30       ` yhlu
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Lameter @ 2006-01-13  3:59 UTC (permalink / raw)
  To: yhlu; +Cc: linux kernel mailing list

On Thu, 12 Jan 2006, yhlu wrote:

> It turns out, if I disable "Support for paging of anonymous memory
> (swap)" --- SWAP
> 
> the CONFIG_MIGRATION will disappear from the .config
> 
> the mm/mempolicy.c may need some #if CONFIG_MIRGRATION to comment out
> these calling.

Could you try this patch:

Index: linux-2.6/include/linux/swap.h
===================================================================
--- linux-2.6.orig/include/linux/swap.h	2006-01-08 22:37:45.504089980 -0800
+++ linux-2.6/include/linux/swap.h	2006-01-12 19:56:35.665086037 -0800
@@ -180,6 +180,11 @@
 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_pages(struct page *p) { return -ENOSYS; }
+static inline int putback_lru_pages(struct list_head *) { 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] 6+ messages in thread

* Re: can not compile in the latest git
  2006-01-13  3:59     ` Christoph Lameter
@ 2006-01-13 17:30       ` yhlu
  2006-01-13 19:17         ` Christoph Lameter
  0 siblings, 1 reply; 6+ messages in thread
From: yhlu @ 2006-01-13 17:30 UTC (permalink / raw)
  To: Christoph Lameter; +Cc: linux kernel mailing list

It works but there are some typo

+static inline int isolate_lru_pages(struct page *p) { return -ENOSYS; }
+static inline int putback_lru_pages(struct list_head *) { 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; }
===>
+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; }

So the CONFIG_MIGRATION depends on CONFIG_NUMA and CONFIG_SWAP?

YH

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: can not compile in the latest git
  2006-01-13 17:30       ` yhlu
@ 2006-01-13 19:17         ` Christoph Lameter
  0 siblings, 0 replies; 6+ messages in thread
From: Christoph Lameter @ 2006-01-13 19:17 UTC (permalink / raw)
  To: yhlu; +Cc: linux kernel mailing list

On Fri, 13 Jan 2006, yhlu wrote:

> So the CONFIG_MIGRATION depends on CONFIG_NUMA and CONFIG_SWAP?

Yes. Maybe this will change in the future if we can find another way to 
preserve the anonymous mappings.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-13 19:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-11 18:21 can not compile in the latest git yhlu
2006-01-11 20:13 ` Christoph Lameter
2006-01-12 20:36   ` yhlu
2006-01-13  3:59     ` Christoph Lameter
2006-01-13 17:30       ` yhlu
2006-01-13 19:17         ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).