From: Josh Triplett Date: Fri, 10 Oct 2014 20:12:28 +0000 (-0700) Subject: mm: Support fadvise without CONFIG_MMU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=887e7019e3b8f00c7901c0bc66fb689ced69f7b4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm: Support fadvise without CONFIG_MMU Commit d3ac21cacc24790eb45d735769f35753f5b56ceb ("mm: Support compiling out madvise and fadvise") incorrectly made fadvise conditional on CONFIG_MMU. (The merged branch unintentionally incorporated v1 of the patch rather than the fixed v2.) Apply the delta from v1 to v2, to allow fadvise without CONFIG_MMU. Reported-by: Johannes Weiner Signed-off-by: Josh Triplett --- diff --git a/mm/Makefile b/mm/Makefile index fe7a053c0f45..2ad574d1d12d 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -28,8 +28,9 @@ else obj-y += bootmem.o endif +obj-$(CONFIG_ADVISE_SYSCALLS) += fadvise.o ifdef CONFIG_MMU - obj-$(CONFIG_ADVISE_SYSCALLS) += fadvise.o madvise.o + obj-$(CONFIG_ADVISE_SYSCALLS) += madvise.o endif obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o