Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756115AbbGPXPv (ORCPT ); Thu, 16 Jul 2015 19:15:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39937 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751953AbbGPXPu (ORCPT ); Thu, 16 Jul 2015 19:15:50 -0400 Date: Fri, 17 Jul 2015 01:14:05 +0200 From: Oleg Nesterov To: Andrew Morton Cc: Joonsoo Kim , Benjamin LaHaise , Fengguang Wu , Jeff Moyer , Johannes Weiner , Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mm-move-mremap-from-file_operations-to-vm_operations_struct-fix Message-ID: <20150716231405.GA25147@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1298 Lines: 41 fs/aio.c can't be compiled if CONFIG_MMU=n, filemap_page_mkwrite() is not defined in this case. Add yet another "must not be called" helper into nommu.c to make the linker happy. I still think this is pointless, afaics sys_io_setup() simply can't succeed if CONFIG_MMU=n. Instead we should make CONFIG_AIO depend on CONFIG_MMU. Reported-by: Fengguang Wu Reported-by: Stephen Rothwell Signed-off-by: Oleg Nesterov --- mm/nommu.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/mm/nommu.c b/mm/nommu.c index e3026fd..979afad 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -2008,6 +2008,12 @@ void filemap_map_pages(struct vm_area_struct *vma, struct vm_fault *vmf) } EXPORT_SYMBOL(filemap_map_pages); +int filemap_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf) +{ + BUG(); + return 0; +} + static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm, unsigned long addr, void *buf, int len, int write) { -- 1.5.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/