From patchwork Fri Jan 15 18:15:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 363725 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp91556jap; Fri, 15 Jan 2021 10:16:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJycEgq61EzRM+kLlKNTRI1f/c3bLM5uRV7pDXlpWaYZquEd0X1YgHv3q8JZZglMl2bNaRQT X-Received: by 2002:a63:cf06:: with SMTP id j6mr13910256pgg.195.1610734614642; Fri, 15 Jan 2021 10:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610734614; cv=none; d=google.com; s=arc-20160816; b=UVr5LNbwvlcBSvbzN+ko4+SX+Y33BGtzYqL2rDeNXYbCs5TYlLY/mgA3LSCxryqpX7 EUWomaXeFuZAwFyjMfbaOXvPW6jDPJMcDr8Yb5ZHgVYg85Cd/kwJGssoiQ+Ak2zc3ZKk 2wUANBfjoFVV0v/zFDFjiLMmBg2UeVRLjdI5q8BpDvBRuZZHs4FqQGt5r8Si1sXhwk6N UAmwBoYRbppYxHVUxvcwz/V0lTv8U8YJkv6QbFb6otHUM92ThABY9CQQedvqiAbPRZuV nEOobzjleq/le9srddsQz8z3wGAWABicgkLKSOsZTwHxXO7qXfgpVruTm3n6QeZfasIy 98Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=xn3GeIDCGyCSHjue+pQ/kfwRfAa3xmFxgNcvRcBwCqc=; b=yrTx13XaOetp9pR0j1eeYJX33dkmm1pCbrmpaMTCxQ+SWDdUAdQAKjRvBSYIZiUA+H h+gSDhcZ7FWFfKbskU558S4WOrfjYTQJgGPOrfcT9eJ08HYX320/FjacWaE6RZKk1bR2 OrVBZ8VExKI1YH9SqtlDAFVkMOCaFlX0HDa6VenvnRl3E4KAu1ZFRuHYMk8AvDFMH+mm XZ+6f1m745yW6vrcHJjhjWNEQXDMV5tEXh43T9t4wyI9/ht1L9bTfm/HmMJdOev+Enm9 ldaPR+AVn2LidpnpOY/6Pf8rIYoKnrkUFSXk+tpkIuchJbBT7uR3WYyZJowTtAC4NaSE 9b3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NQSMyoh8; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id b22si10956441pgh.10.2021.01.15.10.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NQSMyoh8; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9887E6E4FE; Fri, 15 Jan 2021 18:16:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7BBA66E4E8 for ; Fri, 15 Jan 2021 18:16:43 +0000 (UTC) Received: by mail-wm1-x336.google.com with SMTP id k10so8220738wmi.3 for ; Fri, 15 Jan 2021 10:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sdXKnDa6lvIb811vAIyU+syK3ZIQA1yBtXwMvcVTZ1I=; b=NQSMyoh8n63rM3uQJJJSde6hMFXcBhFL3jjHN2XG3bUDERwDZuGBn6aChRJvncceeY Nl1812QytdqWcMvSlIWSZs3R/Dee0ZfLy+TxyNAcZlqt6u3FC25PoPHIIpzxaW3Etaew Je9/kvEYITSeRo+yfUIOy7BxqSCKpBZf6t8yfDvYcGiqz0B0zS6dHCvl6gyJtydwQxOH OtO89GlReKUeFDHPErBHe2G1TQ6xlV1T8MAB2twrcAPKywjZ5rSkCRwMMuD9WwvGjlNX NeHbSKC+bRET3FbGuC79UjlPm8Kydr/Uvx+Cp2uLfDQTA7IU/vKzsW39bEFUhAqIl9Gm cxTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sdXKnDa6lvIb811vAIyU+syK3ZIQA1yBtXwMvcVTZ1I=; b=ikszY11Gazhx6IZ2VqZZ9Ffo7w9XDBmhH+FHhLMoMly/R5QxEqDudPVJOZxlJDLiuQ x8RZ/QVr1cOOzAsWcR56TIS79gqR8aexYlYCtWK2mdpCP75SVFedrp0bXSJltUNzAXFK rF+pu7JRmYO915Yo2DHrPH4mjyyzdW6IJZM+tcvWZQied8fJJYXwN+QmLmdOB2JXII+1 tGU4ekarAv4xLSAchXq8ZO7wyX/25y/xmay5uC/Z6hNjoyRjC+LIJN6UWP9KLFhjzqfi PCxAoE0HOfdQvDw+Dk9PrwazvTe/KmiH88b7YqG3e+joCIigVgxWW9cwB31TZubyJzlF M72A== X-Gm-Message-State: AOAM530ggFuiNWRcJcQBpALt+EeVSn9WK0g9nLC1MwULLmfCVhl9pMrX LmTZdLVtr99NVF/tPwUlKlTpQQ== X-Received: by 2002:a1c:a145:: with SMTP id k66mr9753170wme.11.1610734602115; Fri, 15 Jan 2021 10:16:42 -0800 (PST) Received: from dell.default ([91.110.221.158]) by smtp.gmail.com with ESMTPSA id b133sm14405979wme.33.2021.01.15.10.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:16:41 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/29] drm/nouveau/nouveau_svm: Remove unused variable 'ret' from void function Date: Fri, 15 Jan 2021 18:15:58 +0000 Message-Id: <20210115181601.3432599-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210115181601.3432599-1-lee.jones@linaro.org> References: <20210115181601.3432599-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_svm.c: In function ‘nouveau_pfns_map’: drivers/gpu/drm/nouveau/nouveau_svm.c:810:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_svm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c index 4f69e4c3dafde..84c5bf53fe967 100644 --- a/drivers/gpu/drm/nouveau/nouveau_svm.c +++ b/drivers/gpu/drm/nouveau/nouveau_svm.c @@ -807,7 +807,6 @@ nouveau_pfns_map(struct nouveau_svmm *svmm, struct mm_struct *mm, unsigned long addr, u64 *pfns, unsigned long npages) { struct nouveau_pfnmap_args *args = nouveau_pfns_to_args(pfns); - int ret; args->p.addr = addr; args->p.size = npages << PAGE_SHIFT; @@ -815,8 +814,8 @@ nouveau_pfns_map(struct nouveau_svmm *svmm, struct mm_struct *mm, mutex_lock(&svmm->mutex); svmm->vmm->vmm.object.client->super = true; - ret = nvif_object_ioctl(&svmm->vmm->vmm.object, args, sizeof(*args) + - npages * sizeof(args->p.phys[0]), NULL); + nvif_object_ioctl(&svmm->vmm->vmm.object, args, sizeof(*args) + + npages * sizeof(args->p.phys[0]), NULL); svmm->vmm->vmm.object.client->super = false; mutex_unlock(&svmm->mutex);