Message ID | 20210319082428.3294591-19-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1171195jai; Fri, 19 Mar 2021 01:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNcOns3lm3Z2JhyYC5nuPF7MlDQWsoCfAShNSRDT7bBad/FFWITPvfQ2jBpAqjFrGuH/xk X-Received: by 2002:a17:902:e54c:b029:e6:42ee:18ae with SMTP id n12-20020a170902e54cb02900e642ee18aemr13141789plf.68.1616142311348; Fri, 19 Mar 2021 01:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616142311; cv=none; d=google.com; s=arc-20160816; b=0u8PjL7QFQAJxeVSN4JeUiPq1138Co47YPBdcWfJodujGKLb1okeB7CyNkFodGc8wl Yv2HB79j+zPyxwnEYEiY2J6ok7/7ejpgRZvQfBEJyZK8H+XrswAvoHdfgZt68GlxQu2D 5at+6+NeNa5ElyM/KfKsnhP87niHETf5kra2uJvTvqJF79B7QAvFJNr8KyvUNIH8/OXE EVWMR2FzZOHco5gREFcIOp43571Hp1RWi3exdSit/eJ8Bz+YSBTZLSbQfHJBv6CshoJs ozJPUrj2e6cHilSfGxcLF16LRB2tjWe9LlZk76GJ5ZhdpGKrUtB+jJbNAQd4ObitPt5H jR+g== 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=Xvx8OW/mz1LZwcG2sTOceeS1KGNEDstBKmCwckNzKVw=; b=zWp3FfikNzESkHREORlZU0X4gv7LArZoPlRRpCUuDiNRrUDHoEcsHlGkvH4LeqeMnH ie+K2j/BN+ukPFypyhY6Ow/yM0sUZF00JzU1XuKLuqtZR6aap2+t3U3LfE8Q17NY9wuN ahwGcppVquk4Ajp+33Et3peFRVuBrN0ntVm3H58RIKsXI5TYKd7ZGLIhM4zCbueKk6i+ HVilv8hBUIY1IY6TpeO2kzS4aXXHwTO2UX3Wj+5DoMiy4DOKNW97vJ0SGLgzJnR90My1 HxWYQSP6kwjX4wOjc6IYnnNOXMYvi/OMa12P71c0A3+CkxH6fjgN9gsyJSp9foF+S97n KOpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=o76YDBB9; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id w34si4372115pgk.351.2021.03.19.01.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:25:11 -0700 (PDT) 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=o76YDBB9; 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 9D9D06E9B0; Fri, 19 Mar 2021 08:24:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by gabe.freedesktop.org (Postfix) with ESMTPS id E14F06E9A8 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 08:24:50 +0000 (UTC) Received: by mail-ej1-x632.google.com with SMTP id k10so8283849ejg.0 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 01:24:50 -0700 (PDT) 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=eTcc77PaUiGKf9phoAd/vzPQm0tz3YbgYP/6lveIZh4=; b=o76YDBB9GOGYLe4KosrUgxOBNbMHyVlSzUKKNYctBr1a+nJl39FsRZBjx1MUrCV60z G02VKl9741zmmRXVAMB9v+F/VyHIHhwpPx1ssPPESKP0k2Qh2yuji6ZU8S0vaapOLjeO tvdsbLtjE0hYM4zorjaqD1iE1Lf8d+9uMi+DM4AeDSFKF6b3BYqNNUG5znwLuJ7lICpM fprqwrsIvtynzXDtKCXAZkIggamTvNoH2UPXAjK6JOzLwpydN/t7VEghUfqBQr+v6LeX jIup1bHTfmcMgRVhge9WozkrF9w0IvoRiy/3Yke03HQoKu28B+bVdjggc263BREr6fN4 2pAg== 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=eTcc77PaUiGKf9phoAd/vzPQm0tz3YbgYP/6lveIZh4=; b=M1wE3knxZ2zZm1wmgn6fw1zTD05YikOrbFuEA0j3AnShcmzbUVCRB+xrVkabW+J2/X j30MSOAGQ7cmSOvsNukstAlMS5/fzqv8HJThOJ0cnkrs8IySe6xBANM3oJNCmiGPUyam 4/JPqgDDUK9BQIcFOwU3gTqrjmXm9cqQijKqTWLl+OYmS6lzYQ+TsSRrDefhtSQy/j4f ZorR6EXfD9SOaQb+BrQgnOFVmD+fiu+oOlng5kWUBolH8wxm+hfAwFP/GQnQoCGJNVRz 2RyZfnz5XBS45O0eQqsmNaiYs0ZjUfFMyUIlcibKSUlnSdDfiD4GU2P8w0DVrLezsxbE vD1g== X-Gm-Message-State: AOAM531E2BYmTP/PMixptqFuz20gHGf+v0jss/o7Bd+DJXsn77zZuJd7 B3u68LKeImlup74q3U1hIwEr9g== X-Received: by 2002:a17:907:76c7:: with SMTP id kf7mr2949578ejc.470.1616142289588; Fri, 19 Mar 2021 01:24:49 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id b18sm3273727ejb.77.2021.03.19.01.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:49 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 18/19] drm/nouveau/nouveau_svm: Remove unused variable 'ret' from void function Date: Fri, 19 Mar 2021 08:24:27 +0000 Message-Id: <20210319082428.3294591-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210319082428.3294591-1-lee.jones@linaro.org> References: <20210319082428.3294591-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs <bskeggs@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid GPU from W=1 warnings
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c index 1c3f890377d2c..26af6ee915368 100644 --- a/drivers/gpu/drm/nouveau/nouveau_svm.c +++ b/drivers/gpu/drm/nouveau/nouveau_svm.c @@ -811,7 +811,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; @@ -819,8 +818,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);
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 <bskeggs@redhat.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/nouveau/nouveau_svm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)