From patchwork Wed Apr 25 04:20: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: 10361707 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 42753601BE for ; Wed, 25 Apr 2018 06:25:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FF2528F5A for ; Wed, 25 Apr 2018 06:25:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2419C28F54; Wed, 25 Apr 2018 06:25:20 +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=-2.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5089028F54 for ; Wed, 25 Apr 2018 06:25:19 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id ABD52267734; Wed, 25 Apr 2018 08:25:05 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2C4FD26770C; Wed, 25 Apr 2018 06:18:37 +0200 (CEST) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id AAAB1267700 for ; Wed, 25 Apr 2018 06:18:34 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id z9so14085146pfe.6 for ; Tue, 24 Apr 2018 21:18:34 -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=PDgUR5yeJYTozucfH7+6JUiJMeHSrm5xVIuaLq5IC0E=; b=YZW4tvv5OKue2PzTGHDDiM3oQTIrmL58rIW6zOKMRLpycy3GPGCg7L6GqJ6FKIhf8P WWzPcVGEVpNdCF+0EdJpAgBnrFBWpJxBCcusmiH3cvCCrDzYr4j9pxoy73kDiVUUTMtZ d23bwPpE/E6yJYyhqBBk4j4oG5XQPemtJQaMhvIFlzMtQSfFm+mQQDxOgDI50LOqhcn4 lghz+TknDdmVQNSDcJ5DOmQVUd7hBt2uWtWgop3wtaLb27YV3Jlew9aTZvHIDyMEQaQy IvfFZXtxSY4v9ZWwfCYR46sSP3PeYkHwAOv12r3tJAT5aXIEhK58WicS4dEJ2NfaQ6LB VYqg== 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=PDgUR5yeJYTozucfH7+6JUiJMeHSrm5xVIuaLq5IC0E=; b=uRgehcuQ4hvkk042kuyVMPES4IRopCsoJ9XISwO2baEvEzGebrO4kj/tu9//h7+pX9 x2E5tTusB7BAEEV/Y0KXZVqkuHg1kg6bn/Kzy1e3wgY1v/S6GpygbAlFmWkJD6EduguI ilrutl0Hsz354Fi2BINPBNaNLK32RowpJ1hfjI+og0VEGYAIwN2zgVQq/gZT1znbncQo R7WHzC6t2Yl7tGlhMS6yliXF/kJ6GaCCYhtEA43qFmIjGS6DDeabfEmpowGdM5Xedrrp zq/HB/nYJsOwYP0I1k8+AnK/afAGD6Zb6eCPmsImlK/oqaeC3z0xVD8dKXo2BdgkwENF tvRg== X-Gm-Message-State: ALQs6tCqFHjjgBmFSbtzPltC2nkgTwtILfLuGOFnq/6BUxQGFbRHg04A fCBD+Fy2QcI7lWhzG67CBxA= X-Google-Smtp-Source: AIpwx48qM+mrCP51OSgzxCLLhGGnZ5VPUSmBiAKAqJ7cP4COpS/TkkCBHBgaYH9f88eWKNUszdUe0Q== X-Received: by 10.101.99.6 with SMTP id g6mr22415788pgv.173.1524629913034; Tue, 24 Apr 2018 21:18:33 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([2405:204:412c:6ea6:c066:5423:e559:640f]) by smtp.gmail.com with ESMTPSA id b64sm27070334pgc.23.2018.04.24.21.18.30 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Apr 2018 21:18:31 -0700 (PDT) Date: Wed, 25 Apr 2018 09:50:29 +0530 From: Souptick Joarder To: perex@perex.cz, tiwai@suse.com, o-takashi@sakamocchi.jp Message-ID: <20180425042029.GA21407@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, 25 Apr 2018 08:25:00 +0200 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] sound: core: Change return type to vm_fault_t X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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. Commit 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- sound/core/pcm_native.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 77ba50d..2d331f4 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -3229,7 +3229,7 @@ static __poll_t snd_pcm_capture_poll(struct file *file, poll_table * wait) /* * mmap status record */ -static int snd_pcm_mmap_status_fault(struct vm_fault *vmf) +static vm_fault_t snd_pcm_mmap_status_fault(struct vm_fault *vmf) { struct snd_pcm_substream *substream = vmf->vma->vm_private_data; struct snd_pcm_runtime *runtime; @@ -3265,7 +3265,7 @@ static int snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file /* * mmap control record */ -static int snd_pcm_mmap_control_fault(struct vm_fault *vmf) +static vm_fault_t snd_pcm_mmap_control_fault(struct vm_fault *vmf) { struct snd_pcm_substream *substream = vmf->vma->vm_private_data; struct snd_pcm_runtime *runtime; @@ -3354,7 +3354,7 @@ static int snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file /* * fault callback for mmapping a RAM page */ -static int snd_pcm_mmap_data_fault(struct vm_fault *vmf) +static vm_fault_t snd_pcm_mmap_data_fault(struct vm_fault *vmf) { struct snd_pcm_substream *substream = vmf->vma->vm_private_data; struct snd_pcm_runtime *runtime;