Skip to content

Commit

Permalink
mm: Support fadvise without CONFIG_MMU
Browse files Browse the repository at this point in the history
Commit d3ac21c ("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 <[email protected]>
Signed-off-by: Josh Triplett <[email protected]>
  • Loading branch information
joshtriplett committed Oct 10, 2014
1 parent d3ac21c commit 887e701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 887e701

Please sign in to comment.