]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm, mempolicy: remove unneeded functions for UMA configs
authorDavid Rientjes <rientjes@google.com>
Mon, 16 Dec 2013 23:45:05 +0000 (10:45 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Dec 2013 23:45:05 +0000 (10:45 +1100)
commitb801d6ec9105a7bcd464e4d3316ee6055aa71e42
tree16e4a010e64260458c9ed00e5991a2bd82f10418
parent4812398b574032c9232585dc6ca59f667be14950
mm, mempolicy: remove unneeded functions for UMA configs

Mempolicies only exist for CONFIG_NUMA configurations.  Therefore, a
certain class of functions are unneeded in configurations where
CONFIG_NUMA is disabled such as functions that duplicate existing
mempolicies, lookup existing policies, set certain mempolicy traits, or
test mempolicies for certain attributes.

Remove the unneeded functions so that any future callers get a compile-
time error and protect their code with CONFIG_NUMA as required.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mempolicy.h