From patchwork Sat Apr 14 19:06:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10341399 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 1397D604D4 for ; Sat, 14 Apr 2018 19:04:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E519A28ACA for ; Sat, 14 Apr 2018 19:04:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D772E28AD1; Sat, 14 Apr 2018 19:04:18 +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 D049028ACA for ; Sat, 14 Apr 2018 19:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751292AbeDNTEL (ORCPT ); Sat, 14 Apr 2018 15:04:11 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:38792 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbeDNTEL (ORCPT ); Sat, 14 Apr 2018 15:04:11 -0400 Received: by mail-pl0-f66.google.com with SMTP id c7-v6so7842998plr.5 for ; Sat, 14 Apr 2018 12:04:10 -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=Xpfp2d9jA891ziQrzzkw8hAgaWBFaGBD1d+ZpEHVBmM=; b=ovEA/2DwBsZ2HNbcE4Eq9dI1WI/ONZPbNWNc0w5NO8qtYG3VpC3zvP3NSBRGtVJF2N Rbj68P7LgFdihT12+5hA27ptLjyY56yRam1teCU6VlTU2CJZSL+oc1/FekKfaazvn0D2 u7UqfhsSypUNMRHW9QEBQe4+0opFEJsyaKWYIzbq5a3XikIuiBemsvupjSPQ6lngkqNv aWCWnWeyQ6v7d5mTZ5TGTPvNX0ZTQUqHmhDRMliNK7Hvh1v8eAlXOFndpTtA/L2PSTki hZ08nH7zLLeRI+9JfI+sdTwT1LPBi/CfmJfCBje/yoTi1mXXVaz0fC0hSxQxMrEtmsa1 Muzg== 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=Xpfp2d9jA891ziQrzzkw8hAgaWBFaGBD1d+ZpEHVBmM=; b=tpTBYFI2ltGHx1MhgA8Zy/2L3iqA0UUybEatTMzfY/ZRiuYFgWA00ejNK11v/zDjhB 3VctPZg9zyN9jooT37JtARKwodfUWWQyUzS36OwFAx1UUnIxeW734odJ8C+J4KXoz87H t5BIL6H4oEj7Kw9RztwaLmi/wspJszkkej07k7m8iwCkVt/PylsJ5V+muPg4LySJz8p+ LzJZ8G8o7tPGFJLwwlSEPDeqV3rA+GlzWuvZHqxyehd9ZACUXGgH3ci82fZgLv/i2R+V s9yeEq4GTq90wx9xYE6KRl/7xmHGJEAdpjxVZ2MPYGuJ6VrNf5ZWk/bWo6ytT/TLZGf1 Ecfg== X-Gm-Message-State: ALQs6tCQOwORi0ed7niiyC6MSHm3YNtjBdISqCNM+RUks1HM8C8apC3B /+CjiWX0b3khjwuh/hW3NmM= X-Google-Smtp-Source: AIpwx4+tOkBGPcZ1XXuyKl4uKUV4/1jUp5c19mXIONIKF4skCTk6bEZiBOwOly3Q1nBtGa6lUKfkUg== X-Received: by 2002:a17:902:b283:: with SMTP id u3-v6mr9643695plr.263.1523732650464; Sat, 14 Apr 2018 12:04:10 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([49.205.218.216]) by smtp.gmail.com with ESMTPSA id x14sm4733511pgq.50.2018.04.14.12.04.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Apr 2018 12:04:09 -0700 (PDT) Date: Sun, 15 Apr 2018 00:36:02 +0530 From: Souptick Joarder To: linux-usb@vger.kernel.org Cc: willy@infradead.org Subject: [PATCH] usb: mon: Change return type to vm_fault_t Message-ID: <20180414190602.GA19756@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 fault handler in struct vm_operations_struct. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- 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;