From: Chen Gang <gang.chen@asianux.com>
To: Michal Hocko <mhocko@suse.cz>
Cc: "sfr@canb.auug.org.au" <sfr@canb.auug.org.au>,
rientjes@google.com, riel@redhat.com,
isimatu.yasuaki@jp.fujitsu.com,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org
Subject: Re: [PATCH v2] mm/Kconfig: add MMU dependency for MIGRATION.
Date: Tue, 06 Aug 2013 17:10:36 +0800 [thread overview]
Message-ID: <5200BD8C.5050409@asianux.com> (raw)
In-Reply-To: <51FF6E67.80909@asianux.com>
On 08/05/2013 05:20 PM, Chen Gang wrote:
>
>
>
Sorry for my careless sending: reserving so many waste empty lines.
> MIGRATION need depend on MMU, or allmodconfig for sh architecture which
> without MMU will be fail for compiling.
>
> The related error:
>
> CC mm/migrate.o
> mm/migrate.c: In function 'remove_migration_pte':
> mm/migrate.c:134:3: error: implicit declaration of function 'pmd_trans_huge' [-Werror=implicit-function-declaration]
> if (pmd_trans_huge(*pmd))
> ^
> mm/migrate.c:149:2: error: implicit declaration of function 'is_swap_pte' [-Werror=implicit-function-declaration]
> if (!is_swap_pte(pte))
> ^
> ...
>
> Also need let CMA depend on MMU, or when NOMMU, if select CMA, it will
> select MIGRATION by force.
>
>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> Reviewed-by: Michal Hocko <mhocko@suse.cz>
> ---
> mm/Kconfig | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 256bfd0..e847f19 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -245,7 +245,7 @@ config COMPACTION
> config MIGRATION
> bool "Page migration"
> def_bool y
> - depends on NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE || COMPACTION || CMA
> + depends on (NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE || COMPACTION || CMA) && MMU
> help
> Allows the migration of the physical location of pages of processes
> while the virtual addresses are not changed. This is useful in
> @@ -522,7 +522,7 @@ config MEM_SOFT_DIRTY
>
> config CMA
> bool "Contiguous Memory Allocator"
> - depends on HAVE_MEMBLOCK
> + depends on HAVE_MEMBLOCK && MMU
> select MIGRATION
> select MEMORY_ISOLATION
> help
>
--
Chen Gang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2013-08-06 9:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-01 2:39 [PATCH] " Chen Gang
2013-08-05 7:32 ` Michal Hocko
2013-08-05 8:46 ` Chen Gang F T
2013-08-05 9:03 ` Michal Hocko
2013-08-05 9:05 ` Michal Hocko
2013-08-05 9:13 ` Chen Gang F T
2013-08-05 9:20 ` [PATCH v2] " Chen Gang
2013-08-06 9:10 ` Chen Gang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5200BD8C.5050409@asianux.com \
--to=gang.chen@asianux.com \
--cc=akpm@linux-foundation.org \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--cc=riel@redhat.com \
--cc=rientjes@google.com \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox