From patchwork Tue Nov 6 17:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10671983 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 A5F6715A6 for ; Wed, 7 Nov 2018 08:27:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97D9E2B2E5 for ; Wed, 7 Nov 2018 08:27:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BF552B484; Wed, 7 Nov 2018 08:27:01 +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=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SUBJ_OBFU_PUNCT_FEW autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 49CF12B2E5 for ; Wed, 7 Nov 2018 08:27:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 78CBA6E46A; Wed, 7 Nov 2018 08:26:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 66D186E3F2 for ; Tue, 6 Nov 2018 17:32:59 +0000 (UTC) Received: by mail-pf1-x442.google.com with SMTP id v68-v6so2836826pfk.0 for ; Tue, 06 Nov 2018 09:32:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=p6YAtqHsFGgofHBb9vkoVeDlZQj+6PsuEvkqGA9ef+4=; b=lzGxeHrIps5m7ur2QcvvsGm6jycAkOYsLDJeXO9QxzxtmjY3kO8gvSqYCREHhyHIi7 Prjc352rvacCQm0ybzsjXYTO5AkfRvXXs6OvuakmAoBhY8Swd3dNxURoZCwJSdxHk84z vozbxy+7jTLdfvFeXuMwU8DOUNqXXUDFAJ6g2jwq255ACorchR30v9iJeumCwt+KAWAz 8+P8higimT11KlK/k1tZa2gzG3Ab2lgYwuC5gfBsHO1xCXHqNJRU2iNYbUyEEsIxY0yK OScNxoEBVtow1YMlYOMaHxFmHyE1ku/AxHfmhi0vQmOnVCxPuBBs2JBsWMYFCZGTSyLG NU+g== X-Gm-Message-State: AGRZ1gII3JymEcyI4eMr3cuFgg2vGB/UMQqxAW09IiReROpBYDYcZnrV HPdGgNzWFB/1F0oEQFX5MGE= X-Google-Smtp-Source: AJdET5cLcdBUbbfeSu8wX7iMmJinpQloKJV40WYu3EFZRaGXKFTs3Lv4KOkp5ylhOj56w4fVbZm0Fw== X-Received: by 2002:a62:1e83:: with SMTP id e125-v6mr26825959pfe.231.1541525578868; Tue, 06 Nov 2018 09:32:58 -0800 (PST) Received: from jordon-HP-15-Notebook-PC ([103.227.97.34]) by smtp.gmail.com with ESMTPSA id w2-v6sm17297512pfn.89.2018.11.06.09.32.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Nov 2018 09:32:57 -0800 (PST) Date: Tue, 6 Nov 2018 23:06:29 +0530 From: Souptick Joarder To: akpm@linux-foundation.org Subject: [PATCH] udmabuf: Convert to use vm_fault_t Message-ID: <20181106173628.GA12989@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Wed, 07 Nov 2018 08:26:45 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, kraxel@redhat.com, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Use new return type vm_fault_t for fault handler. Signed-off-by: Souptick Joarder --- drivers/dma-buf/udmabuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/udmabuf.c b/drivers/dma-buf/udmabuf.c index 5b44ef2..699b6b7 100644 --- a/drivers/dma-buf/udmabuf.c +++ b/drivers/dma-buf/udmabuf.c @@ -20,7 +20,7 @@ struct udmabuf { struct page **pages; }; -static int udmabuf_vm_fault(struct vm_fault *vmf) +static vm_fault_t udmabuf_vm_fault(struct vm_fault *vmf) { struct vm_area_struct *vma = vmf->vma; struct udmabuf *ubuf = vma->vm_private_data;