From patchwork Wed Mar 3 13:42:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392081 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133171jap; Wed, 3 Mar 2021 05:44:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCR5P5zJZU1mGeaZJ5b0rl2C/ZmedVcPPu9WMmbQk75ZGrsN8Qo4vhhP+/1ywmW3MmSoFT X-Received: by 2002:a63:461d:: with SMTP id t29mr22836968pga.192.1614779058683; Wed, 03 Mar 2021 05:44:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779058; cv=none; d=google.com; s=arc-20160816; b=B4G6G5PmwYRP8IlyFQRlT+Ky/b+0PFvhPazwvBALH9OWxAov99QbZQDOvlHx1LG+mi FkOi7hA8xtMugrd2+/s5UVTp6bEH8OX/b3/P9YgG2FEk/9RGGsKD77a7OJPkv+n5zvt7 e3N/vec7xBh66LaLYz8Wl95moMipQIapCri33EMoSoPHMA8eKWlN5SkmQC0ewCnelSXZ xKQX/KWLNgl4TjjwLb8+C3tdfJNdA5FccidE/bKvcgVYK29vk6ycHekMFoH/R9EBgdUH 3yuOreGeSnqi22wezJ93wR/0Pwx1GVKe8Fn0RIzbTqoHKABigRD6wnuy8NX0/IX2RhtM gpVg== 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=d3h9iId9V0ZZ6Mi3k7S4qs68vD3l+/8xVr8NTi+FZvEMUSuPn7u7LO+CafXBbgaJtI UVFyV6LYJciNgk9PbR6/7CHZ9w5XUaFPwbkF1G6O9FcXrFHgVPavujPffPhKMBiOWACo 7DE2y3bBqSVM1NcsU38m2FMvKiUy06rGAvaf/VCobffEdI+NNJbLrTEKH4n2OyhZ7ap4 z3MJBsBTVtlHIH7aaz/pfc/F7fk29I979JUmaUEtd8cn5ZfR0LvYFUdSj62nGBs46mK1 7lh4+gPXlByjS7uT600I7p8+INN6VOMOOqtDTyd3KJBMT3hAsjsrt9lINqGgwWtJ5nHy uMbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hv3a0tcA; 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 u127si2793626pfu.16.2021.03.03.05.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:18 -0800 (PST) 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=Hv3a0tcA; 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 988226E8F2; Wed, 3 Mar 2021 13:43:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id 25EDF6E8FD for ; Wed, 3 Mar 2021 13:43:54 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id n22so5227800wmc.2 for ; Wed, 03 Mar 2021 05:43:54 -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=eTcc77PaUiGKf9phoAd/vzPQm0tz3YbgYP/6lveIZh4=; b=Hv3a0tcAo2K75m0PVXruwEWL4rfLpWzsc4Q8ptX+wlRQui8I+T9dLgLHzoAzZ504j/ XcEzu5iref2iOCnTh/o7cuHw+viXjLLMy8clfd4ZxtHnXl0RQYy2eGfS2ggWC1qnxc5p xC4l5DEddko48sXzz7/SS7YKf1p0wal7oJ5cXs9QtL18zSF/4lmjSmI2HgSN3tyE6B1S /FTU0+aJKxH890PwQM1AEg3ZlrQQ+JU2ilGVGkvuv97eQX2CwvOuTVNBVkTMCDWRoCS6 t3to01UjR2QuViV0QUnqOsUPl5w4dzGd0Yi/iMWuHy/RtGZ8ifOVWd3phAkfkQ8RvNOA kRGQ== 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=a1YSMkU4wIu6rBY/MVTeclQFErIIo75vfxvVNu22VRD4vhR6iyVy8TO6+UfHkGPsc2 94g3XbLIvGTxJhMDb/L+M9g2qP1yVDFwbRNpx13Yktp+9nZMjiIbeeweXsKUSBezCaKN 6Z7rfYwXpq2aP17NAvs/2oWFqzVzTiizhFRvqxGrDFkLsI+TwWVCwyU0coDifh8rMAg4 zHmPWVrqK9TZv8ntmFOOl/M9fuqDQZdK0gpZidXwayeaImHNX9+ch2Sq50ssQici1ps8 WmzrE9bMyO4CWsZg+/C/UPIAni3YC0zSpqcwprXKxW0QVPZOn9zNEpcgt2PXlyI45uKP rExg== X-Gm-Message-State: AOAM533rwDUmwggPHDGdnMmH77s55ilFEmDD83MxrhM2rTMw2TDH2GL5 w7s8kze7WmOAWlZhyMGCKL54Jw== X-Received: by 2002:a05:600c:190a:: with SMTP id j10mr9157109wmq.140.1614779032867; Wed, 03 Mar 2021 05:43:52 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:52 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 21/53] drm/nouveau/nouveau_svm: Remove unused variable 'ret' from void function Date: Wed, 3 Mar 2021 13:42:47 +0000 Message-Id: <20210303134319.3160762-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-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);