From patchwork Wed Jan 9 16:19:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10754433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9DBE313B4 for ; Wed, 9 Jan 2019 16:15:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D00628752 for ; Wed, 9 Jan 2019 16:15:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80F0D29205; Wed, 9 Jan 2019 16:15:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 247F629478 for ; Wed, 9 Jan 2019 16:15:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 10F538E009D; Wed, 9 Jan 2019 11:15:21 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0BF988E0038; Wed, 9 Jan 2019 11:15:21 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F179A8E009D; Wed, 9 Jan 2019 11:15:20 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id B0C098E0038 for ; Wed, 9 Jan 2019 11:15:20 -0500 (EST) Received: by mail-pf1-f199.google.com with SMTP id r9so5550101pfb.13 for ; Wed, 09 Jan 2019 08:15:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:mime-version:content-disposition:user-agent; bh=tcCiJRtOYCpxUZfccav15M1Zu+fheGpFRE81Ukk7nJo=; b=MRMJlYITiyHbyGBUxFEsBhboW9ant97r3X+Dzjj6UCA+PJ65HSWJwaaAbqbpiWCYgT 3wwn8HpW4NBYtcIGkgcLclwP/tVEdwPZ8RKZi0GO2lZ4NqR0lykOVBEeauQyeVBXgC9b Bglp+OpIhnQRsH51gg67swGqYI2xhz21wcm1JF2t9oGKwvXg2kcf82kzW5yCOiksyLa8 BrdPA2FHhp1RkbQDGyiNYrWEA33fUGoX8mGR1JZJvRu7Oq+uPlSgGPzUNqCpjspCsJfL RMCUYGXltRnR1pTAep98bdciJcSmIETHOBbn3MRnKw2n1H3Vlij9DfX/LHqoOHuluhuR ovXQ== X-Gm-Message-State: AJcUukdVCuZegNTuQ5g7oDxywAfGKSdSIna0WGKp+nyGZGFbpfGEZhHv vSUz0q9vIYLK6gLOjEjsfk+RHZZ0dGRSekh3Gbb7uCn4vJJ7ZfZM5WcMwsTF5tqCWINJMBethBV s4z60q2PNEls7PsRroVpuqqIDmFgRBJf+ZPwP/GtdP0/81t1llD9AqTRtUkaRZy7SYEya22fFs8 SFbHlZNJP/BWkUpLJyuASC7dk+NrbXYfksVMGwFQqQ6w5ETuosr7vsoePjHpOzSRSqBpiNlKcA/ qjlROt7hTNOVRNh/yiO9f9C6KSXKp2joXm/4yZJkmQEaEgCMhmLm70dFUcCrTCHJaeDYju215TA vpCw5quQFiB3yheRbayDeKcb3iAzY7wXsMtBpku/I9KHliUKBVXE3C2puMg6qJ0jvUW+XMcfRCa Q X-Received: by 2002:a17:902:27e6:: with SMTP id i35mr6487121plg.222.1547050520154; Wed, 09 Jan 2019 08:15:20 -0800 (PST) X-Received: by 2002:a17:902:27e6:: with SMTP id i35mr6487055plg.222.1547050519362; Wed, 09 Jan 2019 08:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547050519; cv=none; d=google.com; s=arc-20160816; b=G2FzwpGwhmIwysYK8CvJpYhFg0vYV2WCgQl8qdoTacYknXjR4CnzK0VXBzGYQC15DP 7CGlq6e384EEpfg+tRe/XmArC58SVANL81bQoq94E2vPsZnlh3jmNUQ/8sMTRtX+bhCC JMxaBAmJofqNNu6tiNDJvdvEhremak+hReIfTBvhw8AMmG5nEo5awTWuAD1NHfjjf0u9 Bnjh4eoYcRn1EvDSXNI80FN+fKYjfxPiqsLnWHr11S1ffle1ORTkOYfvGCPBDbOdADSr yWIY4lZ0RWirX4ySrLfINAwzgk/v6VabDJBYccvwgp+jsK+M5ajrt/DiQfZLUyIito/d Sq9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:dkim-signature; bh=tcCiJRtOYCpxUZfccav15M1Zu+fheGpFRE81Ukk7nJo=; b=deUVCA7ORt1dSwqxhwOCIi3ILrJ3ppkC5a3J6on9AdusxfGba2xth95U3UMk+JnxaW 3I1Le8rygN3AmhNO+C8/9gsBbfIGFlxnLfWted341+8IwycwXouxcT2Ome80cEHFM/rm zf39EwswJynWmKvIc6BAeVJKr2yUjKV1FOvqhweihF2MKy+Z/pxOliHiwC+YIFLqL8eD Lf9/leFlwbmQC2HkrMKxOid3O8BauiW1Q8t9VWNg9rErGQiaPBIE1rNbLERV9opross7 ws0G3wi4+xmdxukewv+m6sDgynmSg0FjiLqWRBiUYNMTRlF8dJ6X0uC4oYL0W/HtFvjK sNsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AKGPf6gZ; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id s16sor50451952pfi.69.2019.01.09.08.15.19 for (Google Transport Security); Wed, 09 Jan 2019 08:15:19 -0800 (PST) Received-SPF: pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AKGPf6gZ; spf=pass (google.com: domain of jrdr.linux@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jrdr.linux@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=tcCiJRtOYCpxUZfccav15M1Zu+fheGpFRE81Ukk7nJo=; b=AKGPf6gZYCcjWTKRrDu/996b7ktn7e/9ECkuaKVua1Z1IZ8xbjNK8VHLSTRdJtABVg fmhnaUcqKbcb+2ACwaPsk9XhHc56vXTT2F3brjelP8jli/7KFkl3SZgQEGBE9cjcLebW NHWCgulRmgxopPelt/3zZ/K2F3XlbgPN5WQ8s2jN59w1vv14HdwbpOc03rpa58u2c0qq waXMClOuEXPRSaTNDFn6WTjN5L99zC69fHDAmJiAY5YZnyT6QWZbSfspBbRu1lB7C1TQ SuezrHY1IE5s8QVTdpVG6EiO35enzCesjTQRcPEsJvHp+GUClkr0T1JIfxaBI7necwuV KpZg== X-Google-Smtp-Source: ALg8bN6PQvM0O9XKmqd4X9VDjlWmYj8deO/uUR4dYTIeDb6rp8kUfPJnzePTIn20Bpgpn7+4LoSyig== X-Received: by 2002:a62:130c:: with SMTP id b12mr6557141pfj.247.1547050518871; Wed, 09 Jan 2019 08:15:18 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([49.207.49.233]) by smtp.gmail.com with ESMTPSA id y29sm94420609pga.59.2019.01.09.08.15.16 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Jan 2019 08:15:17 -0800 (PST) Date: Wed, 9 Jan 2019 21:49:17 +0530 From: Souptick Joarder To: akpm@linux-foundation.org Cc: jglisse@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, willy@infradead.org, dan.j.williams@intel.com Subject: [PATCH] include/linux/hmm.h: Convert to use vm_fault_t Message-ID: <20190109161916.GA23410@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP convert to use vm_fault_t type as return type for fault handler. Signed-off-by: Souptick Joarder --- 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,