diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-01-28 13:06:26 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-01-28 17:10:31 +0300 |
commit | 3f98a28cc37253269b4104cf95a51f7716a2eb97 (patch) | |
tree | 83fe0117a240f2a8fe58ff2c4e2e4b30251e9339 /mm/filemap.c | |
parent | 5857c9209ce58f8e262889539ccdf63e73ad7a93 (diff) | |
download | linux-3f98a28cc37253269b4104cf95a51f7716a2eb97.tar.xz |
mm/nommu: Fix return type of filemap_map_pages()
If CONFIG_MMU is not set (e.g. m68k/m5272c3_defconfig):
mm/nommu.c:1671:6: error: conflicting types for ‘filemap_map_pages’
1671 | void filemap_map_pages(struct vm_fault *vmf,
| ^~~~~~~~~~~~~~~~~
In file included from mm/nommu.c:20:
./include/linux/mm.h:2578:19: note: previous declaration of ‘filemap_map_pages’ was here
2578 | extern vm_fault_t filemap_map_pages(struct vm_fault *vmf,
| ^~~~~~~~~~~~~~~~~
The signature of filemap_map_pages() was changed, but the nommu
implementation wasn't updated.
Reported-by: noreply@ellerman.id.au
Fixes: f9ce0be71d1f ("mm: Cleanup faultaround and finish_fault() codepaths")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20210128100626.2257638-1-geert@linux-m68k.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions