From patchwork Sat Apr 14 19:49:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10341415 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4540860365 for ; Sat, 14 Apr 2018 19:47:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32CDC2890A for ; Sat, 14 Apr 2018 19:47:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 235CE28915; Sat, 14 Apr 2018 19:47:41 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6AD52890A for ; Sat, 14 Apr 2018 19:47:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751192AbeDNTrk (ORCPT ); Sat, 14 Apr 2018 15:47:40 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:32841 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751152AbeDNTrj (ORCPT ); Sat, 14 Apr 2018 15:47:39 -0400 Received: by mail-pf0-f196.google.com with SMTP id f15so8661048pfn.0 for ; Sat, 14 Apr 2018 12:47:39 -0700 (PDT) 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=bo0B1X8uCwv6b7LZLsfBFqd3DfuUnVrYCQoLdUnI9EQ=; b=kMKVsz+DvtxyBna9DgomImtIiKy8a2b5Xy7POA8ZIeBydQr7/+Bh9qaArGFOe/YLOM c6Dqpv53yZENf78HjarWcZllsPX1kgXspkA84iIrE96cLlXwNimHamdZOZjWMn90tSah SPo3Ia+N/cQD63ziMEwHRVmvb8k9lkmq3UAu4Jh3GW9dxgbNSvaCavNtcEWun8jqr2Ry aChne/mPIwtmRvGIVAsLVXkAmonmviY4XRjOX8qvLsOZb9AQF/jeBW0bWAOyK8BM6tFA 8D09+5nRHDWVHNwHgqHvZDCtNJ6Vlf5NrrIJ5n/46SJOqI2Exy0QF7/iGDHRzyBuOL16 zXNA== 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=bo0B1X8uCwv6b7LZLsfBFqd3DfuUnVrYCQoLdUnI9EQ=; b=WNMKR+5TfkhpxlAnJILZX4NEa7rajYYqz4mI6iXrvt5gVzcnUbhBfqFv/N23ROWKCh Ec6j5lFveaOCAELvU0LvaN+7O8uoPT1TCVKFmq3LjUnJwU5TERWCNB5OKURVjdKIXrVH iJXk9Gg6Pr3ZBKdqT/tUhQsrZ+1PFFnQ2dtuornpOzwCnLTZ/LsYB4BnkNG71QmGSF8I 5TLU0nR4Za3vSq6gfuNNMljj0BimnQFbyqGOR9kTw6CirNkft/AKHuTw7RxGyKvEjT5N IKrbg2SzGk7ynZcBnGiV7P5AYIOGgByK4PZMkOVdDmBT27RZOtwUevkbWhwULf6hKOJD Fvlg== X-Gm-Message-State: ALQs6tDNVNWX4dY2UdQjNbI7i8jxjQKvb3G8VSmOmMXavGlNAjNgbU8/ pG9TzUKb+boLmEt52ZUsIIncIIpT X-Google-Smtp-Source: AIpwx4/KhAUMLQwt09IFNX75e9uuyPrENYI0pe/pAfu52YEQVp9ZtGWehTMSBEYCHsKtQcyQUJfqTA== X-Received: by 10.99.100.132 with SMTP id y126mr7813956pgb.77.1523735259144; Sat, 14 Apr 2018 12:47:39 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([49.205.218.216]) by smtp.gmail.com with ESMTPSA id b73sm16930669pga.62.2018.04.14.12.47.37 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Apr 2018 12:47:37 -0700 (PDT) Date: Sun, 15 Apr 2018 01:19:30 +0530 From: Souptick Joarder To: jayakumar.lkml@gmail.com Cc: linux-fbdev@vger.kernel.org, willy@infradead.org Subject: [PATCH] video: fbdev: core: Change return type to vm_fault_t Message-ID: <20180414194930.GA20071@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use new return type vm_fault_t for fault handler and page_mkwrite handler. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- drivers/video/fbdev/core/fb_defio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/video/fbdev/core/fb_defio.c b/drivers/video/fbdev/core/fb_defio.c index 487d5e3..82c20c6 100644 --- a/drivers/video/fbdev/core/fb_defio.c +++ b/drivers/video/fbdev/core/fb_defio.c @@ -37,7 +37,7 @@ static struct page *fb_deferred_io_page(struct fb_info *info, unsigned long offs } /* this is to find and return the vmalloc-ed fb pages */ -static int fb_deferred_io_fault(struct vm_fault *vmf) +static vm_fault_t fb_deferred_io_fault(struct vm_fault *vmf) { unsigned long offset; struct page *page; @@ -90,7 +90,7 @@ int fb_deferred_io_fsync(struct file *file, loff_t start, loff_t end, int datasy EXPORT_SYMBOL_GPL(fb_deferred_io_fsync); /* vm_ops->page_mkwrite handler */ -static int fb_deferred_io_mkwrite(struct vm_fault *vmf) +static vm_fault_t fb_deferred_io_mkwrite(struct vm_fault *vmf) { struct page *page = vmf->page; struct fb_info *info = vmf->vma->vm_private_data;