From patchwork Wed Apr 25 04:14:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10361705 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 051916032C for ; Wed, 25 Apr 2018 06:25:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E515B28F59 for ; Wed, 25 Apr 2018 06:25:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9DBB28F5B; Wed, 25 Apr 2018 06:25:11 +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 3957228F59 for ; Wed, 25 Apr 2018 06:25:11 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 2BFB326771E; Wed, 25 Apr 2018 08:25:04 +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 8B087267705; Wed, 25 Apr 2018 06:12:54 +0200 (CEST) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id 3206B2676EB for ; Wed, 25 Apr 2018 06:12:50 +0200 (CEST) Received: by mail-pg0-f65.google.com with SMTP id i6so12400771pgv.3 for ; Tue, 24 Apr 2018 21:12:50 -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=RKXPicW7N7jSZGHOK04AyLvZFaeFTR+pbOzALHlRhIQ=; b=rZLJyeE6Knx/PvVyh5aiAq7tfZfOFsqODLTNrYgSyDqWSrBDWA/ujejJ2j8q6+jYpn n1hp4rhiWqq0O9b6gYRlSiIAITaYGVueAr+aROszlw4kV7Jm2J2DpATXWHO4RqGqdTUa IiFGR2i8CTQaSd4ZVBDcwmQx3xwpjQAGxM4Rcf5B2MK0MzfrD0XaXZkUORSPYQ2AjQNV UeLRR4cnpmnqZCu2o1e1oMVhBHX+/4HMNfFssAsu/LShR9PThYZROAu0dIHhZ6lh/ejj 9qhbPbEakGOTG2cr6XHGNf0LwPFajG/xD+42FERcx5CB0MeCkpiPlmNGeXFeDnjiM1zQ lqIQ== 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=RKXPicW7N7jSZGHOK04AyLvZFaeFTR+pbOzALHlRhIQ=; b=OZRumpxyZteJfQSgQ8BdO1efiKB5H8GsI6wEqmFwedFzoJxqJtYf/NMjjyr9veNHaS 9k+7WqxfcDn25nyKUJt0DvXjG8Nn4N860J3Lt5vXwsUesPS3u8QVc93duyeCzokTY9iH Jv+ES2H5ZS7VouO8X0HnSBI88GhSQEK1guX+zyDa7yegaRvB0UDpcYYUsCmvv79GSAa1 +FzHQfKaS92kAvEaTGc3BdRHBsh5+OrDptCYXpKsWNbVWFdkwejBJG7lubHhZuRMbOAB 8swFgDS/75SrDjA7r5JO6ARqzYs3517p3kGQgULCRRZkCIJI7z3JpoOa7jOHw1sXviqP fZNA== X-Gm-Message-State: ALQs6tAiBC6vIkTFHRh9ooRKm6UkSNFAGndun5xCUdY3KgZ1nbgMIok4 L1tqpltkzvFISbzumjes3qs= X-Google-Smtp-Source: AIpwx4/YTAiQqTPMHBHtaWUVuvINtDKUH1yO+vV6btVfbmGUAy/XAAMZXYN5O2X01ETy09CFa0AM5g== X-Received: by 2002:a17:902:aa94:: with SMTP id d20-v6mr28453198plr.323.1524629569114; Tue, 24 Apr 2018 21:12:49 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([2405:204:412c:6ea6:c066:5423:e559:640f]) by smtp.gmail.com with ESMTPSA id p1sm30280234pfp.48.2018.04.24.21.12.46 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Apr 2018 21:12:47 -0700 (PDT) Date: Wed, 25 Apr 2018 09:44:45 +0530 From: Souptick Joarder To: perex@perex.cz, tiwai@suse.com, viro@zeniv.linux.org.uk, johan@kernel.org Message-ID: <20180425041445.GA21283@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: usb: usx2y: 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/usb/usx2y/us122l.c | 2 +- sound/usb/usx2y/usX2Yhwdep.c | 2 +- sound/usb/usx2y/usx2yhwdeppcm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 diff --git a/sound/usb/usx2y/us122l.c b/sound/usb/usx2y/us122l.c index ebcab5c..8082f7b 100644 --- a/sound/usb/usx2y/us122l.c +++ b/sound/usb/usx2y/us122l.c @@ -139,7 +139,7 @@ static void usb_stream_hwdep_vm_open(struct vm_area_struct *area) snd_printdd(KERN_DEBUG "%i\n", atomic_read(&us122l->mmap_count)); } -static int usb_stream_hwdep_vm_fault(struct vm_fault *vmf) +static vm_fault_t usb_stream_hwdep_vm_fault(struct vm_fault *vmf) { unsigned long offset; struct page *page; diff --git a/sound/usb/usx2y/usX2Yhwdep.c b/sound/usb/usx2y/usX2Yhwdep.c index d8bd7c9..c1dd9a7 100644 --- a/sound/usb/usx2y/usX2Yhwdep.c +++ b/sound/usb/usx2y/usX2Yhwdep.c @@ -31,7 +31,7 @@ #include "usbusx2y.h" #include "usX2Yhwdep.h" -static int snd_us428ctls_vm_fault(struct vm_fault *vmf) +static vm_fault_t snd_us428ctls_vm_fault(struct vm_fault *vmf) { unsigned long offset; struct page * page; diff --git a/sound/usb/usx2y/usx2yhwdeppcm.c b/sound/usb/usx2y/usx2yhwdeppcm.c index 0d05052..4fd9276 100644 --- a/sound/usb/usx2y/usx2yhwdeppcm.c +++ b/sound/usb/usx2y/usx2yhwdeppcm.c @@ -652,7 +652,7 @@ static void snd_usX2Y_hwdep_pcm_vm_close(struct vm_area_struct *area) } -static int snd_usX2Y_hwdep_pcm_vm_fault(struct vm_fault *vmf) +static vm_fault_t snd_usX2Y_hwdep_pcm_vm_fault(struct vm_fault *vmf) { unsigned long offset; void *vaddr;