Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp932760imu; Wed, 9 Jan 2019 08:43:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN4AIM151rVY7dclMQP+f0ySUUwfPbdEGoX6OOtdXXoRExG92hpdnQOefRy6CQ9KvAcb7Cvt X-Received: by 2002:a63:b4c:: with SMTP id a12mr6106689pgl.131.1547052220631; Wed, 09 Jan 2019 08:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052220; cv=none; d=google.com; s=arc-20160816; b=JwG6/FDWR1tV8uojv6SphPas6KUbExR2hTItQ7n59bOSnGCqtM6zcDX1JUrmuBIqCa iDISYFL2LRwyBB47GCjLF2OSqRThk6cJipRUVPv1tzT64ol1NEkfMiPxEi9Xt3Rqe7RR UGvWq86HLWoF+gKfwY6Qqmuzbq4pg7vZHgixAqOYYUWJw1jLMGmf7dB5H46Sis16IeUq aX9isrlFoj/X4CI2uD6BXKzUYDq102DQN4ra8ikxBnYH+SJLoYQpQaOxOWnH1Xh+Kuhg pVP0BUcRD5GVwjKo/onKPbDb+P0Tz4uDGjTw/3ev4lvxT4reDXuiGHgJrK1ktcmHCANR sceA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=guTeVeqW9KLhp8/c6KawSHCWPSc4BbHsuX5EpTBXe4Q=; b=Ycc4T3Muu6cJdxltJFCG7sRZ/KWSfc+6GOe8fTZCMEvr7NStAGeCGBXjVggktNmP8b R91WKjpPDJHUt4MiR3bn7hrnhwDtY5Df+aZASZ6F8dCt7h601H/QcZKd6XJNHJp5C1lr gQ8vQ4NqaRezy1bFcbdMB85Wg29V40ph3yBwCB21D1/Sxb7ylV7eIaiBFucd33BHKQ+7 d8jnnrV51dt+S55f0zbfBxKUUTD11CMYya+CD5pSRzhu/jxArJO8I7piYoH74YCXrgPW 8VADdrB22ZdHYdNqThtAE4zjuE1Z//e4BxCOCUrVGVnXcNXQtyCdUTdd5uqHF+QtNDWk HFQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o0tKtF4y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si5360268pln.340.2019.01.09.08.43.24; Wed, 09 Jan 2019 08:43:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o0tKtF4y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732638AbfAIQQz (ORCPT + 99 others); Wed, 9 Jan 2019 11:16:55 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45139 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731219AbfAIQQz (ORCPT ); Wed, 9 Jan 2019 11:16:55 -0500 Received: by mail-lf1-f65.google.com with SMTP id b20so6037340lfa.12 for ; Wed, 09 Jan 2019 08:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=guTeVeqW9KLhp8/c6KawSHCWPSc4BbHsuX5EpTBXe4Q=; b=o0tKtF4yQrmQxwfrlRXVheuHHZtBgHvb3NozqG4C0b4owVYXoP8CXsWB2hn1LzrbkL Cu78l0TfbmiJIHHA7NBpRZBy2GQPHVZ68EMv4zAUnSPxButnaO3gbLgK6rpQA5yUkGjJ Zb9M8nyYhYDADOePrU+MGnv2oEn1qcrqEjAsIBE3nNidMD4gU04E8KiajvoCa2A6RuhC gWIigZ643mRaEHMsDAJXyYr/Ob9ivq0WzF8k9QmvCc4hFhcLVvxBHnJfVeNRlx6egG1/ ERrMa4A8XcxoS41mrfdKlhatMtB1TzVzxJugo9rp4lgVxNK46DvXdv8cMC+7A+V4BMJc VkBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=guTeVeqW9KLhp8/c6KawSHCWPSc4BbHsuX5EpTBXe4Q=; b=fDGNTd4Dcg+yQ6fIdNF37q3KvY/qduBSv9rCuic7w6sckBH59kwkKaU2ADLQ3phz76 cFrEJRCQtMDWQlTgzif2YYlHjDV9+IF5L18DbE/04P70NmJVKgOrtjF/VvsVDTW62YDJ drsim0+CAvR1l3jWpTaBfi/FiYh20pVAmE3pvwflJUkOnjLVdJhYr2zAN51glmc0lLfD KVVwP8O79V1P2InUFVTsGBmJDL8fw8iE9b50aH/KdYAkKnjG/My1k514CozzS2MAFpPV dJWRAXyc5YgWxvZ+M5rDcv8O/2YEcyvnx/gOBjRzbj1PrpChWJWd6798Ccpw5U2BgaL+ pJOw== X-Gm-Message-State: AJcUukehwz6qr5fogQTnbU00dh07K8hJopwQ6e828KGFgm56vfXHrJnA cNa99fhiWTY63m/gUIrjsLnev44Az92JEZVu2Mc= X-Received: by 2002:a19:c70a:: with SMTP id x10mr3764528lff.88.1547050612929; Wed, 09 Jan 2019 08:16:52 -0800 (PST) MIME-Version: 1.0 References: <20190109161916.GA23410@jordon-HP-15-Notebook-PC> In-Reply-To: <20190109161916.GA23410@jordon-HP-15-Notebook-PC> From: Souptick Joarder Date: Wed, 9 Jan 2019 21:50:44 +0530 Message-ID: Subject: Re: [PATCH] include/linux/hmm.h: Convert to use vm_fault_t To: Andrew Morton Cc: jglisse@redhat.com, Linux-MM , linux-kernel@vger.kernel.org, Matthew Wilcox , Dan Williams Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 9, 2019 at 9:45 PM Souptick Joarder wrote: > > convert to use vm_fault_t type as return type for > fault handler. > > Signed-off-by: Souptick Joarder kbuild reported a warning during testing of final vm_fault_t patch integrated in mm tree. [auto build test WARNING on linus/master] [also build test WARNING on v5.0-rc1 next-20190109] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Souptick-Joarder/mm-Create-the-new-vm_fault_t-type/20190109-154216 >> kernel/memremap.c:46:34: warning: incorrect type in return expression (different base types) kernel/memremap.c:46:34: expected restricted vm_fault_t kernel/memremap.c:46:34: got int This patch has fixed the warning. > --- > include/linux/hmm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/hmm.h b/include/linux/hmm.h > index 66f9ebb..7c5ace3 100644 > --- a/include/linux/hmm.h > +++ b/include/linux/hmm.h > @@ -468,7 +468,7 @@ struct hmm_devmem_ops { > * Note that mmap semaphore is held in read mode at least when this > * callback occurs, hence the vma is valid upon callback entry. > */ > - int (*fault)(struct hmm_devmem *devmem, > + vm_fault_t (*fault)(struct hmm_devmem *devmem, > struct vm_area_struct *vma, > unsigned long addr, > const struct page *page, > -- > 1.9.1 >