From patchwork Tue Apr 17 14:43:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10345363 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 6257960542 for ; Tue, 17 Apr 2018 14:41:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4698628488 for ; Tue, 17 Apr 2018 14:41:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4548728581; Tue, 17 Apr 2018 14:41:39 +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 33F59285A0 for ; Tue, 17 Apr 2018 14:41:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbeDQOlP (ORCPT ); Tue, 17 Apr 2018 10:41:15 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:38624 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbeDQOlN (ORCPT ); Tue, 17 Apr 2018 10:41:13 -0400 Received: by mail-pl0-f66.google.com with SMTP id c7-v6so12108505plr.5; Tue, 17 Apr 2018 07:41:13 -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=VM5v0sEOogjN2zH+/z4eNz8pdtX2Umcm3nqpRqMaDHc=; b=EsqAOlQQ32ySYM95foamcXwP7ZPwRTOUsA/v96Rfh1r/zHQqFfR50A6fXDZ03IkqTV k4tdfaQQXCy3DuEzWKyPuu+xqJgCtv4DiqwsQcUkTtE6dmuG090mLrEkouc5D1YhnnzX /UtTfvcI+bPwxSRatpWzJecEXAPvovfnGiYRzO0LPl7gN1AjEZ9yq0y+1ORAjgUQbATi 32FTTvwdQB9CbryyegOwqjwvxRBXRuS33pp8YRaDzWw3mtWhTg6tXLNEyATweD/0Qw7u RwV40P5FzvZRyCgMONSP71zdi2Y/XK6WljUPIWZZq6LjoEEloep5OJCJMYyQ27MXhQiC mGTA== 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=VM5v0sEOogjN2zH+/z4eNz8pdtX2Umcm3nqpRqMaDHc=; b=YdNcxwGDvE4GDroH2I0HiqSn8nkJftPyFKHXECnqxakNPpEAjDKwyuYzxOXpg/+IRk Zk/QvBU4rS+wtPyhJn0uWmfZjX5EsG001LENQchYwrJXRVe/b4riCiWi5oEnzvAtRlpt fpmg6EiKVt1f+Jglt3QTvIJ792YyIrLVTLRNBtxOeVFqfGCsGNc39on5axE6oc4Xfo7k Ojg2XE4BEDLEJIqMM5tfpPqXSM11bEYAaYknBNWvTxFF+Vm+qBDxMunLFrMfqoIWKMop 19VoGinp+PGCLtpa8w7151NbItiSd/qNGCacoihwVoBbbAdbOr1iuftEb13kGNpepZBB A8Cw== X-Gm-Message-State: ALQs6tBesiU1/zbAwIwq8F1JNsFO3VkUga3DUrZ0TfZ2XDR4bM9zvSKT v/f9Xgr08vyOz6etcfH58J6Vqjj1 X-Google-Smtp-Source: AIpwx4/KN1sKXXiXL0/k+mmsY8XH7khl1nxyc6Q0LJMS/UIXLt249nziz4oC/J0Nf9JBU4zX2zhL5A== X-Received: by 2002:a17:902:3084:: with SMTP id v4-v6mr2340920plb.262.1523976073134; Tue, 17 Apr 2018 07:41:13 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.18.42]) by smtp.gmail.com with ESMTPSA id v63sm35484933pfk.8.2018.04.17.07.41.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Apr 2018 07:41:11 -0700 (PDT) Date: Tue, 17 Apr 2018 20:13:06 +0530 From: Souptick Joarder To: 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] media: v4l2-core: Change return type to vm_fault_t Message-ID: <20180417144305.GA31337@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 --- 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;