From patchwork Fri Apr 16 14:37:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 422523 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp447809jaf; Fri, 16 Apr 2021 07:38:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLs2+K0m/mBf5neOlPFSFwfNxLdrRCG4sj4zx1etq+LwA7X6/vWqejumtklHnjW4SjziwI X-Received: by 2002:a17:903:1d2:b029:ea:e375:6a57 with SMTP id e18-20020a17090301d2b02900eae3756a57mr9947348plh.31.1618583897192; Fri, 16 Apr 2021 07:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583897; cv=none; d=google.com; s=arc-20160816; b=ivlSGt8sul/L/vBixekMhkm2dT3HbrEXYhBMgS+i+WUVMLEfN9nunaZ+Fmn687JJ+h QBWccjUVoHmuhPthj3aiXSM/uhcOkigdNzd44Peyua79kAvJMZc4/mVhG4iGrOjklL21 OahPTVbPEm09dKNTMiMl72XnzwaWpYrYid5quANCjcNCCVupkpJLr+mShczzYccHX6lt edLz0jB8UgV198TyVU7iuf6rnvgqlqfYZtz15itrg565TZL8ONcsu+12RYDoQL064rtJ OstquKQvgPdftCnXPDyG2rrQ85wctVF6yTvP5z2aDCKPzc1kubP6C7X5rqtkVWAI8Qut eeCQ== 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=Dwo3BgkeCHxAUVSDjsV2KdUIug1Z6enlMe3uSdVfk2wd+hfb+ibqmtYNSL542fTGRb mIuxVCuOQp7GM4DPf4zTVADqthA3X2o1sIxXEOhiCJLVCPN64j/1AH3D8tVGB67TVK8m cv8GBAu75wGkc5Kw7ywr5/5UmLWsNnC8qUAtEY4O1O3fK4HNLFlZfFlBPLoreDv761Am jErjLpVD0k8Z1G9qE+cCjNMs+KYl5cxkXDkbNwci86xg6h6oBwG4ek0EG+8fGpNJT5jq nce0jeEFqY0DR00BLmK74519+GidRXjLav/Qh7SWBiBXHgpmvIK142iURiL+2vj9F3M8 wEoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pJ3u5NeO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y7si6999627plt.83.2021.04.16.07.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:38:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pJ3u5NeO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 7E0366EC04; Fri, 16 Apr 2021 14:37:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 660F26EC11 for ; Fri, 16 Apr 2021 14:37:47 +0000 (UTC) Received: by mail-ed1-x52d.google.com with SMTP id m3so32536504edv.5 for ; Fri, 16 Apr 2021 07:37:47 -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=pJ3u5NeO+xtFEt59222VQTddT/mVwYGlZ19Sl0O7F7DINA7n1E962WyomgkEmnrQ7/ hIU7DbIsLL4BN80rKA9uaowzRvR6SlQWVOeLKReBBI1565aqLRmKeNlVP5fjx++m/hGc PF7VZPyPXpfuSxbctS+snGwSo3I/Hn64La6iq7sZrUG/ECQVI2Muerd5DEPoJJdu5+8p I8KCYaVf2itm0KiGo9Yc76L1jroFIhOs4DWjpz3AzRUl3nNog4E7azTwpv6WNaI3lJ61 gRZG8stGP4QeA2/H7ZDZoYKEaubn4R3GVxmw4SX0U614PYQHe27IrKjcIaMkM+UZgYeh umOw== 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=Wka0tNSyVYQhu1+WfAQUDgVBYCuDxY2h+BUxtWcAUih6Y2WojZSYK70Bvi6Fy2x8+D LhEtAkqOTM+kgiCA81cGG0LyNyix1tdsE4KUWKgrtGySLAf+GIY38gGoMqm9ibTPpXvJ /U7R2CWkzkhOYK7YLGcrq0nsY+cYdOCf5Xa3H7D4vawCFVz5o7o7D/XmshDRAofKOtaZ ASmoV5UYxehfFeJS5FDeCnY4uhfbSu+CdiuZqGUtGKTida++PuA+IzHU7n3HDJpZUimt 5bTcBztQslq6mNlFWYFGOwPJLjK17hLEjEU0/P8Ljfm0/EWM20umzaB+PJbrM5fNTym0 Rpug== X-Gm-Message-State: AOAM532Gc4hyXrjB7RF6ojpKn5VMCb8VwODBrXcGBOKs/0fE2sh4x0mD ijdYJe/gx43P5oyeIf9TReAQRA== X-Received: by 2002:aa7:ca04:: with SMTP id y4mr10173077eds.72.1618583866128; Fri, 16 Apr 2021 07:37:46 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm1326523ejk.93.2021.04.16.07.37.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:45 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/40] drm/nouveau/nouveau_svm: Remove unused variable 'ret' from void function Date: Fri, 16 Apr 2021 15:37:00 +0100 Message-Id: <20210416143725.2769053-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210416143725.2769053-1-lee.jones@linaro.org> References: <20210416143725.2769053-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 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);