From patchwork Tue Apr 17 13:38:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Souptick Joarder X-Patchwork-Id: 10347441 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 2F1B160365 for ; Wed, 18 Apr 2018 07:25:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19FFB201B0 for ; Wed, 18 Apr 2018 07:25:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E1FD219AC; Wed, 18 Apr 2018 07:25:22 +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=-5.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BDA30201B0 for ; Wed, 18 Apr 2018 07:25:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF0926E529; Wed, 18 Apr 2018 07:25:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5C8FC89FA5 for ; Tue, 17 Apr 2018 13:36:52 +0000 (UTC) Received: by mail-pf0-x244.google.com with SMTP id p6so12170349pfn.4 for ; Tue, 17 Apr 2018 06:36:52 -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=zvrLABCnCA3+N1zbeaoSAbvvIbOP0JJuXBY9xnEiKY8=; b=I0z52kzeLDBRY3iRGNnBqr4YslQiEjMY+jyDhU6xE4Ho+PrCqM1jJaDpvYo0feQYcK sQZtR64TFEzkFo+oqzsCX7W9xCw3I2DRhEXdMP2bqjGqIiYbwVST2v5rtkG9dtV7FQsP HBXZP0U1R6YxFx86yAZFsJjAL3cItBdds9By01i82IoJnBVy0YOQY5g8jr4l29rJxBXx glO1VVT9D2C3iDEEvwWyvJbjoocUx9FuLx6rpPhE/m5SQuKVZ0bJQQmkh/FDCHNkxDB5 q2SgKcoIQ7Sy2zF9+QD/M+EjrewYeyYSvzQhEtpEs/sUpHkcHnTGZC6bBbuOC52q9Dll r4+Q== 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=zvrLABCnCA3+N1zbeaoSAbvvIbOP0JJuXBY9xnEiKY8=; b=hf+lzhHbYqgAFU3KtqYsBQPDC0MPVQ6CaUhpM7ket941s7ZVqKpuboRLFwJe7pK7DX yKrYt/3OvBdvIc6fnxGkO1RWMWfOYBClccXkJAEzWprq/SoMfqyQGdttBBIQV4hVhGbu MimhZbxFDFt1I0F/xPUycejhAO8HZQ2jQorK1DTnechZmcs/6lyrI4jTU4SQ2mWJZUJC 8zSNbKEFkM+SxOglu0qV0/HF94yIkh6InSXHOHMYDjif8GtY3BS4X1qIZbSfwqn1IBqI r4yAi6t6+Rt/3LfOhlp75HMQSpLy1BANSgd0Na7IcN/GoYOOquGaftXfZIj4dXvdGuZG gx+Q== X-Gm-Message-State: ALQs6tBNE0qvOSqhYlxCSxMWMmGCbIzvo8iOhtQexLfTZw0zAtLqo2JR FavU6X7nYtNlBJN8cKo5p162nRc1 X-Google-Smtp-Source: AIpwx4/CpHit+vOsutUbZ9iPFnc07yfvTqkDBlzvJgv5XZP8wuzHQR1ju23T5h3A86RglMtQ8D3lBw== X-Received: by 10.99.176.8 with SMTP id h8mr1833021pgf.448.1523972211626; Tue, 17 Apr 2018 06:36:51 -0700 (PDT) Received: from jordon-HP-15-Notebook-PC ([183.82.18.42]) by smtp.gmail.com with ESMTPSA id t134sm16062285pgb.11.2018.04.17.06.36.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Apr 2018 06:36:49 -0700 (PDT) Date: Tue, 17 Apr 2018 19:08:44 +0530 From: Souptick Joarder To: airlied@redhat.com, kraxel@redhat.com, airlied@linux.ie Subject: [PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t Message-ID: <20180417133844.GA30256@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, 18 Apr 2018 07:25:05 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: willy@infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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/gpu/drm/qxl/qxl_ttm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_ttm.c b/drivers/gpu/drm/qxl/qxl_ttm.c index 59cd74c..0b482b1 100644 --- a/drivers/gpu/drm/qxl/qxl_ttm.c +++ b/drivers/gpu/drm/qxl/qxl_ttm.c @@ -105,16 +105,16 @@ static void qxl_ttm_global_fini(struct qxl_device *qdev) static struct vm_operations_struct qxl_ttm_vm_ops; static const struct vm_operations_struct *ttm_vm_ops; -static int qxl_ttm_fault(struct vm_fault *vmf) +static vm_fault_t qxl_ttm_fault(struct vm_fault *vmf) { struct ttm_buffer_object *bo; - int r; + vm_fault_t ret; bo = (struct ttm_buffer_object *)vmf->vma->vm_private_data; if (bo == NULL) return VM_FAULT_NOPAGE; - r = ttm_vm_ops->fault(vmf); - return r; + ret = ttm_vm_ops->fault(vmf); + return ret; } int qxl_mmap(struct file *filp, struct vm_area_struct *vma)