Message ID | 20210113080752.1003793-25-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp297090jap; Wed, 13 Jan 2021 00:08:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSz1mMQazniWkd3gcCw21L3JETbW1MOs8ZDpeHuj6TdTVCe7ZBSqp1u5ngu/dZZ+uS4IB7 X-Received: by 2002:a17:90a:ec10:: with SMTP id l16mr1046797pjy.127.1610525326425; Wed, 13 Jan 2021 00:08:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525326; cv=none; d=google.com; s=arc-20160816; b=wN1azZDwyWzJEVJ3tDbRueDjRiKQsZwoABBdRM4bYKKpMpS93SPeal2aADskau3nsG +4ypS67Bjiwo+Vzg3eavWJp0N8CrVFl4YMbnmRUHKgjRO3PMa7ejk429NIyLPwqlICIv wOwQ6IkJVAGRmbkYkaL4ks7QXHuLha4lMY8uz2hvtU1VydLp9DXjc10t0lVnkuiB7nAg 6Pt1TfDyoFPDG1uy3hE2eFTAoZwA0COi2nNFmqYF9GEY/MqNKu6hH8sunWMrtK2hjDoQ 7b/glANPA2+ESD9eetOAT/XBPkFSQPwWCLrmU644+5/2sRll/nUcPvbMuRrjsj2SnBHP t0NA== 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=pME//UQ0WQL0YDZ04SAd3No9hhO5TJyKeasrcNwaVBU=; b=BcGOnCjtwSzkbDLe2nY8MIejWxYHSPPfFGJccdW2SzBhDRk9caCnIEBi7Y8DMQmTEf fqOlzmy3p4m77hiTw+JH2JC5SK62ZjbnWlFel5CTEbScC/UYUMMmwUjqOUv/BvBskBoU 9VRkqhR6fU5SKbfJEudqK7gMFcefC7AEUY2XqYRpezKXsX5kAPxqKw+OtgVCAo/3k2hB cUNCB0cmHdRfigtD+JDvmPFsXQgy0sZ4iWoYR1tiBofX582bMvPNzeCH9lrgA/hbKzUF TodE6Zq3qDSIjsRTgQgjwGRdHDUgVZtz13LhOZZPkR6ab6n0973bmmqw5wPFWbhhn++j L55w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Pl0iBz8p; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id l19si1453372pgh.584.2021.01.13.00.08.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:46 -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=Pl0iBz8p; 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 2869A6E08E; Wed, 13 Jan 2021 08:08:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0206C6E09F for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 08:08:26 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id k10so688951wmi.3 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 00:08:26 -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=YPaIJ4NMJ9MMh9q35TQI1iqMYfx8RWuRYjdqoNV8b68=; b=Pl0iBz8pshuI89xlZdvYpcf992qQSZUVTOMqSflDk88q+C/knT37dU5H+g193L0RGy Jt8q6Jiuk9N/WlhQxOZAdr34cvKW5c8NMMSA8KKqWBl0S7ro+InhGcLHBprSRquy/Hx+ 0NYVvNBo7mbXI7R+Ts3jsTHi6PAaxDXC/duX6ejbIar1W9hQwSuppdBXXrPUafFk0KPZ 6KjW2hwHAB66OwA9qf/3eqDAwAAPV1Xg6NuvWWJSp4F673dhAw7mQrJ8vA2vFx6yAKGZ k3980aINhNQ3+wT5BwktClc0ojis8PUuJQ030NKbPhV2iAznrIKedpNjdzBJqUAhQ+Tj KAzA== 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=YPaIJ4NMJ9MMh9q35TQI1iqMYfx8RWuRYjdqoNV8b68=; b=HCqmyhHw6vGd3FGDF8mA+vmm0Nbv0cfGaXZfZ4jJ6XtvPb00XCVc6usZ99BusGdQX1 ugxYqcusbJV04gPOcohzJhWfSnAnh82fzmDRIITXEHYq07zXfx3H6CB6DLQNUfmK1l+y 9w0uP6qBkUbFhrwTIUCJ1IB71g9tngPjPIQGPfWUXW+Np6/81J8qbPFuBAWa/ncsnMA+ aL3AXCmnWcuJKwlm7I542xNmxfb8lOdxLPvNRYg/QIiCm9KpQpw3VIVIcM3nIHgw4zT1 S+EGpllwIgfPmJ3JTyJnO401uakVVvX5VLINXy9qD58f1SBMuCydUEZARNFXCOEs6oet /SeA== X-Gm-Message-State: AOAM533AidV7+AfQjNzjOPzhFvud4BFlHZirTCgRDWLMdnuFLdJ1yxSk nhPIYeSUISUkdUMgzCdAdn7W6A== X-Received: by 2002:a1c:e902:: with SMTP id q2mr924513wmc.143.1610525305691; Wed, 13 Jan 2021 00:08:25 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id r20sm1642486wmh.15.2021.01.13.00.08.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 00:08:25 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 24/30] drm/nouveau/nouveau_bo: Remove unused variables 'dev' Date: Wed, 13 Jan 2021 08:07:46 +0000 Message-Id: <20210113080752.1003793-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113080752.1003793-1-lee.jones@linaro.org> References: <20210113080752.1003793-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: Jeremy Kolb <jkolb@brandeis.edu>, David Airlie <airlied@linux.ie>, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Ben Skeggs <bskeggs@redhat.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, linux-media@vger.kernel.org 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 |
Finally rid W=1 warnings from GPU
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index c85b1af06b7bf..1e8d5e1cb18f3 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1225,7 +1225,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, { struct ttm_tt *ttm_dma = (void *)ttm; struct nouveau_drm *drm; - struct device *dev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); if (ttm_tt_is_populated(ttm)) @@ -1239,7 +1238,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, } drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_alloc(&drm->ttm.bdev.pool, ttm, ctx); } @@ -1249,14 +1247,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_bo_device *bdev, struct ttm_tt *ttm) { struct nouveau_drm *drm; - struct device *dev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); if (slave) return; drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_free(&drm->ttm.bdev.pool, ttm); }
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_populate’: drivers/gpu/drm/nouveau/nouveau_bo.c:1228:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_unpopulate’: drivers/gpu/drm/nouveau/nouveau_bo.c:1252:17: warning: variable ‘dev’ 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: Sumit Semwal <sumit.semwal@linaro.org> Cc: "Christian König" <christian.koenig@amd.com> Cc: Jeremy Kolb <jkolb@brandeis.edu> Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-)