From patchwork Mon Apr 16 14:35:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10343071 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 DBF8F60365 for ; Mon, 16 Apr 2018 14:33:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8CF4287AA for ; Mon, 16 Apr 2018 14:33:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA37D287AC; Mon, 16 Apr 2018 14:33:51 +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 56985287AA for ; Mon, 16 Apr 2018 14:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751206AbeDPOdt (ORCPT ); Mon, 16 Apr 2018 10:33:49 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35188 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751114AbeDPOds (ORCPT ); Mon, 16 Apr 2018 10:33:48 -0400 Received: by mail-pg0-f66.google.com with SMTP id j3so3904692pgf.2 for ; Mon, 16 Apr 2018 07:33:48 -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=THUEVI/6Q5QPfNWiT/fHDWFocXXG8zm6qa8F+8BEWAM=; b=A/D6Zu9RNaXlEx3J7iCTCCvS7d08pd7nEn8RLR5EEzkadV20L0GFEFvB0Nad5cwiqT hty0ChA+qpGai0EGa/gIhNE8zVq/MIZOlBtU/UF4DX9cGeWPyNHEN0XjpxGGdpMeTCRI dS1/bJ6a7JUAO9mD8ps/Y592YbhI8SHuifQY0UTTuT9z4YdJHdtbKK8wOVN4JYFCkD5s 1wA+MIMudtCB3/XX8FM41jwsYRpovIcTa3squ0RYjCR48zPrKBGcpCrlyGB4zn1z4CiG MuZtxK7vbf82Os5gMHipfEDByKJ2RwPgkIRv9qWXzTKONOOKlLIx/34j5kCechIjpUhm xbNw== 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=THUEVI/6Q5QPfNWiT/fHDWFocXXG8zm6qa8F+8BEWAM=; b=k19rT7oI7BEbbd4hF6o7UDsYUEt/KckUxsk+qAnDDK9jWeNExKgmO5YS/h+Ab1SFX7 AAs8VddwV0WkWeedbH51+rxaygSjvAVJUzQPdTLguHicLWCxvQ99eleLNn2aiA5KToD/ bNWPHnT6Jg3OO8Y5MDlfBbqfKtguZFWId4olRl8DxAMlMX6JCb41ar+P3PcmzwAlnAOt EmS/0CIrhpXTZFytu2lxPSgX48+E5TtvNlzJcqRuwHIKYa/27TqXE0q83cVDYGpujfut 3bORXi/fCieDlP0jrrpyFe7i9li/uLBtmCdoKPC/rHstOlAcGGvBvfiTWX2g6rKhZoZH ZPpg== X-Gm-Message-State: ALQs6tC6zHe9S9GdTSLJ87QYtipRqrcb7iN7iOuQWiQJm7LmbuBCXoXE anbUSVNbmVvlGwOo19tJ8intMA== X-Google-Smtp-Source: AIpwx49RahLbYrf2dCATPgnpWyZYpCz6l/a0cMNrmgjgGxe2d2qZlY9aJWC8fFxh1hd6bPag4Qjjvw== X-Received: by 10.98.58.24 with SMTP id h24mr2036888pfa.209.1523889228099; Mon, 16 Apr 2018 07:33:48 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([49.205.217.195]) by smtp.gmail.com with ESMTPSA id u68sm23853575pfu.167.2018.04.16.07.33.45 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Apr 2018 07:33:46 -0700 (PDT) Date: Mon, 16 Apr 2018 20:05:41 +0530 From: Souptick Joarder To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, willy@infradead.org Subject: [PATCH v2] usb: mon: Change return type to vm_fault_t Message-ID: <20180416143541.GA26591@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 commit id-> 1c8f422059ae5da07db7406ab916203f9417e396 Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- v2: Modified the change logs. 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;