mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mm: Support fadvise without CONFIG_MMU
Commit d3ac21cacc ("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]>
This commit is contained in:
parent
d3ac21cacc
commit
887e7019e3
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue