From patchwork Tue Apr 17 14:23:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10345223 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 1B52560542 for ; Tue, 17 Apr 2018 14:22:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 067B42833E for ; Tue, 17 Apr 2018 14:22:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEBE2283E8; Tue, 17 Apr 2018 14:22:08 +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 9CF4328384 for ; Tue, 17 Apr 2018 14:22:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752116AbeDQOWH (ORCPT ); Tue, 17 Apr 2018 10:22:07 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:46928 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbeDQOWG (ORCPT ); Tue, 17 Apr 2018 10:22:06 -0400 Received: by mail-pf0-f195.google.com with SMTP id h69so12218513pfe.13; Tue, 17 Apr 2018 07:22:06 -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=eznAC5z0cnMjNGkhKJQdastHlARywZM6MqZ9YlbDRdc=; b=WpaU5jGqxRLq/xLeBqEeUmd6cN2G1rf/llAggfZBAULWb8BCSUgZVx1JgKkvgqG1zG 3zn0RUype7BFrANkM2b6YyvwMk7Bu9ni6gRHr+0LpFTRiN5aM4xJvVO6kXF24p6YvnDm fYSqcSHIa4yoK05iTDF7oswDnfUEK/Vd40OH2TT9muAKCDTgKUeIMikU5XNM3gYYeDgs BZU3SdPeVwBcxJUuqpruOhJpXqbgQgWh32Gde0FyojdWR21uPOTElB1QseLFS7d+iz0H 64gwYeNuGKRVQJ4LxDnle7qz2bMbxpiUGvQdDxu+Af3LERpRvoHTqlHh/yKQf7u7NlAC lkNg== 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=eznAC5z0cnMjNGkhKJQdastHlARywZM6MqZ9YlbDRdc=; b=LG/0We3IR8oF+qosGl3tBP3AyuxfC7/Coscrdwg+3+ETJHX3A7R27my7OiR0eVpyx6 iTMGQPI8BQqVYIJ9kc7NExEIBGE15U9BK2ZeVDv/WSr9y1UvqbjG5ZFu8QfaGlVj09u7 TF0HF/0FHZzcEhfxAVUChEpfiN36JAdOleY0oAe5sPJfR++qNDviZAaQPYnaJPuGnKcp o3KE23z6kpO6IYmp2adN/7kLOrBqlDGzEvdkKJM4dkDgdMQlywu8sEoU92PaR2JqrIav lt5MfdE/TpXdHFTjLHHcrrrLjpBZ5iZCRTQIdO5uZarcT7ArlM8RUG997vBBTaszO32x Ak3A== X-Gm-Message-State: ALQs6tDO2XQS1p6X5iOgNK0o0BRlRFKYRhwwDdwmU9+JjIFNhzKEpLPo tC+ijf36SHGElLl0qCXEmYo= X-Google-Smtp-Source: AIpwx48rqk2fgcle7gljgulkNOJVhmQYOY3zwIKup68evRpoccEWwv60kkzgWWI7rXYKNYo/ZMPp4Q== X-Received: by 10.99.1.10 with SMTP id 10mr1953894pgb.444.1523974925610; Tue, 17 Apr 2018 07:22:05 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.18.42]) by smtp.gmail.com with ESMTPSA id d66sm3747229pfb.130.2018.04.17.07.22.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Apr 2018 07:22:03 -0700 (PDT) Date: Tue, 17 Apr 2018 19:53:58 +0530 From: Souptick Joarder To: mike.marciniszyn@intel.com, dennis.dalessandro@intel.com, dledford@redhat.com, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, willy@infradead.org Subject: [PATCH] infiniband: hw: hfi1: Change return type to vm_fault_t Message-ID: <20180417142358.GA30972@jordon-HP-15-Notebook-PC> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.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. Reference id -> 1c8f422059ae ("mm: change return type to vm_fault_t") Signed-off-by: Souptick Joarder --- drivers/infiniband/hw/hfi1/file_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" 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/infiniband/hw/hfi1/file_ops.c b/drivers/infiniband/hw/hfi1/file_ops.c index 41fafeb..b04624d 100644 --- a/drivers/infiniband/hw/hfi1/file_ops.c +++ b/drivers/infiniband/hw/hfi1/file_ops.c @@ -110,7 +110,7 @@ static int user_event_ack(struct hfi1_ctxtdata *uctxt, u16 subctxt, static int ctxt_reset(struct hfi1_ctxtdata *uctxt); static int manage_rcvq(struct hfi1_ctxtdata *uctxt, u16 subctxt, unsigned long arg); -static int vma_fault(struct vm_fault *vmf); +static vm_fault_t vma_fault(struct vm_fault *vmf); static long hfi1_file_ioctl(struct file *fp, unsigned int cmd, unsigned long arg); @@ -591,7 +591,7 @@ static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma) * Local (non-chip) user memory is not mapped right away but as it is * accessed by the user-level code. */ -static int vma_fault(struct vm_fault *vmf) +static vm_fault_t vma_fault(struct vm_fault *vmf) { struct page *page;