]> git.baikalelectronics.ru Git - kernel.git/commit
mm: Support compiling out madvise and fadvise
authorJosh Triplett <josh@joshtriplett.org>
Mon, 18 Aug 2014 00:41:09 +0000 (19:41 -0500)
committerJosh Triplett <josh@joshtriplett.org>
Mon, 18 Aug 2014 00:44:24 +0000 (19:44 -0500)
commitbea8a3976e54a781c71cd3c119709ed5ca71f6e7
tree7cef2d5f86c0704b50cc163197ca4f6342c45c61
parentca09702717581356bb91e5bbfbb244eda384a004
mm: Support compiling out madvise and fadvise

Many embedded systems will not need these syscalls, and omitting them
saves space.  Add a new EXPERT config option CONFIG_ADVISE_SYSCALLS
(default y) to support compiling them out.

bloat-o-meter:
add/remove: 0/3 grow/shrink: 0/0 up/down: 0/-2250 (-2250)
function                                     old     new   delta
sys_fadvise64                                 57       -     -57
sys_fadvise64_64                             691       -    -691
sys_madvise                                 1502       -   -1502

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
init/Kconfig
kernel/sys_ni.c
mm/Makefile