]> git.baikalelectronics.ru Git - kernel.git/commit
NOMMU: Optimise away the {dac_,}mmap_min_addr tests
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Dec 2009 19:27:45 +0000 (19:27 +0000)
committerJames Morris <jmorris@namei.org>
Wed, 16 Dec 2009 22:25:19 +0000 (09:25 +1100)
commit17f4af1aee786aa1304b0750b80a61acc6d91078
tree2ae2e2f51eff0629bc0e26a97eac85483a7ba56f
parentf47764d45c05f48ef41696a245147f9b851aebf7
NOMMU: Optimise away the {dac_,}mmap_min_addr tests

In NOMMU mode clamp dac_mmap_min_addr to zero to cause the tests on it to be
skipped by the compiler.  We do this as the minimum mmap address doesn't make
any sense in NOMMU mode.

mmap_min_addr and round_hint_to_min() can be discarded entirely in NOMMU mode.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/security.h
kernel/sysctl.c
mm/Kconfig
security/Makefile