From patchwork Fri Apr 20 19:54:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10353607 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 AE3BF60231 for ; Fri, 20 Apr 2018 19:52:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D08028834 for ; Fri, 20 Apr 2018 19:52:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 904D728844; Fri, 20 Apr 2018 19:52:33 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 34C6128834 for ; Fri, 20 Apr 2018 19:52:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbeDTTwb (ORCPT ); Fri, 20 Apr 2018 15:52:31 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:36939 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbeDTTwa (ORCPT ); Fri, 20 Apr 2018 15:52:30 -0400 Received: by mail-pl0-f68.google.com with SMTP id f7-v6so5813070plr.4 for ; Fri, 20 Apr 2018 12:52:30 -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=rQt0NDYo6yNjLgu31lOMADi+LiMJg6l9+LUCsO0VxrI=; b=FWfT6EC9i9CEQ0XL6zp9P78tYMiQH7HECra+Ez2pF7TIARKKpOrP6YY/CF82FUkx+u 6TeUpsFeAp3nAhd9DlfVDb5sQ8QOY1styT+ZPyRnYVqNlG/v8cT2eypvKeS7qPpF7sru 4cFuQ0/R/sl8LUSgsjDV19KWa6tnqtCcvtWbn36qUNieaB3Xer7uyjCGhyC15YZjoXIt ZqA8izDufrSswSks9bX8o8pCRjo/RJZktQ+fgj1WDlbFc2e0IFwwGo7N4k8fSxofFEZ7 3vwYRfnmosx7GV16QSZ/YUPnc/Kj975f4IuOCE7j6nPYsk/ynOVK+AGMsFz6LV+MoZsG q6Uw== 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=rQt0NDYo6yNjLgu31lOMADi+LiMJg6l9+LUCsO0VxrI=; b=NtmZXD/PveK8NKDIZ4+pu8xZIUh3hsP+Cth+FGppEmXEYuS8r8+w3rzFHfiAt1gpPq ajmPEPKXqRCGcV4iKWTVbBspt+XR4Eur7O9eaG7TrdtTB2vNACDEBO0Ai91BWa29mHUR 43vYFNe9a/1VzruLah2vYcShu/YpXn17X63Ydx3IPuUgqTJg1jFIt2MJzrnlnmal8sg7 +ZxrdohnH1e2G/qi5CK13rQ18bhBhn+Hujlubv06w40Oiayu/qYZCxjQWbfmRphdJIpW kbxonyXq9/KYXHRXM9XEH9GryGpA1cOrgrP6PKxy75WIebw81irc9rlKwY2/Lu73Ia5W z5dA== X-Gm-Message-State: ALQs6tD6SDEnGmtBlr9BeSha9mnCGa5qYzIvDBW4OPFz5Unng+xGCvMT 1XLTb5oPBW5k8sgaOO92VXXXLw== X-Google-Smtp-Source: AIpwx48f+aK2uZbEDKuQ6744bxODJnWY8BV3MVDBDVJOQrqz7HM7J7/45jvkEXf8amInqMw0C3fKnA== X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr9347564plb.153.1524253949582; Fri, 20 Apr 2018 12:52:29 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.16.157]) by smtp.gmail.com with ESMTPSA id l63sm10179618pfi.6.2018.04.20.12.52.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Apr 2018 12:52:28 -0700 (PDT) Date: Sat, 21 Apr 2018 01:24:24 +0530 From: Souptick Joarder To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, willy@infradead.org Subject: [PATCH v3] usb: mon: Change return type to vm_fault_t Message-ID: <20180420195424.GA27052@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use new return type vm_fault_t for the fault handler in struct vm_operations_struct. 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 Reviewed-by: Matthew Wilcox --- v2: Modified the change logs. v3: Modified change log drivers/usb/mon/mon_bin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index 2761fad..34e866ad 100644 --- a/drivers/usb/mon/mon_bin.c +++ b/drivers/usb/mon/mon_bin.c @@ -1227,7 +1227,7 @@ static void mon_bin_vma_close(struct vm_area_struct *vma) /* * Map ring pages to user space. */ -static int mon_bin_vma_fault(struct vm_fault *vmf) +static vm_fault_t mon_bin_vma_fault(struct vm_fault *vmf) { struct mon_reader_bin *rp = vmf->vma->vm_private_data; unsigned long offset, chunk_idx;