From patchwork Wed Apr 18 18:47:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10348787 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 3BCE76053F for ; Wed, 18 Apr 2018 18:45:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B7DE287D3 for ; Wed, 18 Apr 2018 18:45:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2052F287E5; Wed, 18 Apr 2018 18:45:59 +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 A00D9287D3 for ; Wed, 18 Apr 2018 18:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752261AbeDRSpX (ORCPT ); Wed, 18 Apr 2018 14:45:23 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:41424 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbeDRSpW (ORCPT ); Wed, 18 Apr 2018 14:45:22 -0400 Received: by mail-pf0-f193.google.com with SMTP id a2so1336749pff.8; Wed, 18 Apr 2018 11:45:22 -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=gF2wl0ABQWfx9Lfp64zmOxO6bC09+BlBIv7mGGbjilM=; b=cYp3o3d6YypAl2hIGWo+gGz6pDR/Ns/a8vHxA8Javh/ciL6c6r0xb850jiaLxl27l+ 4fXuENBPgZoYzt2skhSPMIChHivwWd0B/rdcd2guT5Reiif+zbgFNmtHUCqJ6wu/2BTy EWK6qbTu4bomwKzG0or0gFX125MdP+837Mk9KhrydDD7YH7f0abmBCK+wpWs5PdDSpKJ 2/Gy7NH+7O0HYc/RoirJqec5U1lcLQdwlHziecvbf/+Rbsb0HGgyzCaaMpUZCwt9lhNk J0ELKFuhNsd7Ieui0wC7/Mya+ub4oqCdjhu92vXS+ZozTBciIjJsT4H+Jx7RZIP6DGUR WYJA== 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=gF2wl0ABQWfx9Lfp64zmOxO6bC09+BlBIv7mGGbjilM=; b=n+ZhyAHOLBcAsIIXAZq1gIJE0SFrPhojJ6hk9Rv2vlHVtW9QvMqzj/ewxtzVugLets B+g3jIs0EyhejgNpdjEm4b/tNAOZQ8qb+aq+SNnUYaM4H7lL3lV3LALzHtzC+9M90VEy JYIXvaopVCkW9fRrcJ9xcIIj7F8WsOexy2XOX7FroYRecZygO7D8lisvp9mAC6bBTPQi 0Cr5INZcL7kGvkMIGTo0eZE8p6T7VwI8iyNKZAd6s5x4vlBmbUY7MwIVKYJaW8zKJFvL Izg9jOXhueq3+wVxHBX9J8+sLoeapAUpFwtkQfKuEXdwkpcMvxDjt4+xTDurROuU04Fb u6mg== X-Gm-Message-State: ALQs6tC/lkMqLuHPqJWgKEOEI162I/Ynzd8VmxBodiRVQrYcZQbEsgnQ fmr3XlX4xAVEagvfnCIcFf8= X-Google-Smtp-Source: AIpwx48AIawAaJqsSLLRsgFehJn+xNniyoH4y//B6CqHh0acBMjbe//CIQ5gOVn4kWUhM0fMOn5ERQ== X-Received: by 10.99.119.73 with SMTP id s70mr2636506pgc.208.1524077121904; Wed, 18 Apr 2018 11:45:21 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.19.82]) by smtp.gmail.com with ESMTPSA id t25sm2523816pge.88.2018.04.18.11.45.20 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Apr 2018 11:45:20 -0700 (PDT) Date: Thu, 19 Apr 2018 00:17:16 +0530 From: Souptick Joarder To: sakari.ailus@iki.fi, mchehab@kernel.org, jack@suse.cz, dan.j.williams@intel.com Cc: akpm@linux-foundation.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org Subject: [PATCH v3] videobuf: Change return type to vm_fault_t Message-ID: <20180418184716.GA25507@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 v3: Correcting 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;