From patchwork Wed Apr 18 18:19:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10348753 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 CEC066053F for ; Wed, 18 Apr 2018 18:18:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFDA0287C3 for ; Wed, 18 Apr 2018 18:18:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4B40287CF; Wed, 18 Apr 2018 18:18:06 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable 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 439A0287C3 for ; Wed, 18 Apr 2018 18:18:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752214AbeDRSR1 (ORCPT ); Wed, 18 Apr 2018 14:17:27 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:45236 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbeDRSR0 (ORCPT ); Wed, 18 Apr 2018 14:17:26 -0400 Received: by mail-pf0-f195.google.com with SMTP id l27so1299109pfk.12; Wed, 18 Apr 2018 11:17:26 -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=Hb1CA6mYgy1Qf5SG2giFoLMTkTM92Wmo//mOSZO6eXY=; b=bGNmfnDr6X5h5yvuRZBf3fK3xrxgDYbMj0sr/JBE2PzDAThdglEOlpxix2i9yETFS4 o3OoiCYG2mSm+pATW8ZVGAcncviwMQMyVbsSQ/uavBn1aDjj64jdfFAyuuV6AwTQXBMa 8JCv1pnZe8aJqASUNbYWx8EnFq+Mfq31jUrLmRMNv1Nk/ONOESRR8d9KvUKJtn5ytTaf u5VOa4/GQktPVuBzj1XykKKk0Cxp3U7hlsJl3CTAWrpDuRgAfjxqy+LIWinXMcAbH8X/ NAbhmvQaieGqAa629MuLPboL3wCWu3J3urXFgIM/OwL5gqDkybj6bdqU5JOjqwnzZt2h aAZw== 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=Hb1CA6mYgy1Qf5SG2giFoLMTkTM92Wmo//mOSZO6eXY=; b=bleN6O8oB1e/F0NcW+SxJrqunCd9nBOKx75l8dLNkFSF8gh8b6i1b5sIfnNZORxi4d 2Xscm8NEuyUyf8hP3/5DpZqBK+YckkmNCvdMFr4ItOAKBydnQ4f/YqgyGWC9K/wwte4O h4qpe1CvG7d0MSZb3ulI0jePjCN6me4LzxQmU22lrKPy0yCy4YZQH0JmQGGbqcGA9FcP t8RX/BEBouGbMBtqgz9eRVgoz5gUsZls0JcVjg8zACjg2RDoTVU7vqwMZrFs2UHLeXZp pEpRu9n3SEV50sRDAcKiLXgArwMxYtI6vG6qXzHgBTy/9dEZjLrGUauzCI5QavdY7W9N wcxA== X-Gm-Message-State: ALQs6tAnX49p4flsaoCj/5Du7DS0kyaLLAQbsStzFcPcztmuspPEeibE i69R0ADxDCBwi/u0f19ePhimbYc7 X-Google-Smtp-Source: AIpwx4/ozI0wIy+C3yer7hbVRoSW/OqSqeBFa1n3xIIzEYo9Xe2gF9F9lcCKl+cgVBynp14n7uY4Fg== X-Received: by 10.98.189.14 with SMTP id a14mr2855248pff.30.1524075445904; Wed, 18 Apr 2018 11:17:25 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.19.82]) by smtp.gmail.com with ESMTPSA id a81sm6034116pfc.168.2018.04.18.11.17.23 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Apr 2018 11:17:24 -0700 (PDT) Date: Wed, 18 Apr 2018 23:49:19 +0530 From: Souptick Joarder To: sakari.ailus@iki.fi, mchehab@kernel.org, jack@suse.cz, dan.j.williams@intel.com, akpm@linux-foundation.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org Subject: [PATCH v2] media: v4l2-core: videobuf-dma-sg: Change return type to vm_fault_t Message-ID: <20180418181919.GA25052@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use new return type vm_fault_t for fault handler. For now, this is just documenting that the function returns a VM_FAULT value rather than an errno. Once all instances are converted, vm_fault_t will become a distinct type. Reference id -> 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder Acked-by: Sakari Ailus --- v2: Updated patch subject drivers/media/v4l2-core/videobuf-dma-sg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/media/v4l2-core/videobuf-dma-sg.c b/drivers/media/v4l2-core/videobuf-dma-sg.c index f412429..54257ea 100644 --- a/drivers/media/v4l2-core/videobuf-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c @@ -435,7 +435,7 @@ static void videobuf_vm_close(struct vm_area_struct *vma) * now ...). Bounce buffers don't work very well for the data rates * video capture has. */ -static int videobuf_vm_fault(struct vm_fault *vmf) +static vm_fault_t videobuf_vm_fault(struct vm_fault *vmf) { struct vm_area_struct *vma = vmf->vma; struct page *page;