From patchwork Wed Mar 3 13:42:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392074 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133020jap; Wed, 3 Mar 2021 05:44:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWuqRBRsG5iASyRN8DddmE0Ki5kA+5GMX8bsppsU0ya+AWlPYP/4SXCIbOEK7HM+4tSZKS X-Received: by 2002:a17:90a:a481:: with SMTP id z1mr9667466pjp.161.1614779046811; Wed, 03 Mar 2021 05:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779046; cv=none; d=google.com; s=arc-20160816; b=nlBj9Sxew/AT/jn8dRqPnHaCImt4a0nyNnNEvatX7TLUG9bU/8pzUwIUHKy4SqE5WX XG01o/TPBrmqHeY+sztQHajGCfpd/AU3uBcKUr2uLJLwfRY5FfWMBqSHEegeheS/JjJ+ 1tELpqT1UJn47KMEvPzC5sQd4GmN/1Ay6PPYvZxbKglMKC77wQ3aM0dd2zeJgq8mYvAN JyjMtRBwQtIunR/ZfVj3nr9PVozNqij/O1Xe8LYfolMPK/ydUyWNGp8NCbNjw+dVdiYB IE4bl4EoqSsOX8hFyYAXOjptKlaW6LCZYe7RJ1BGGlOYqBeqAYVkg4Vd6He29ltkjTtj iydg== 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=8ihl0DQC3qwyoP9Iq3oGERWtLMndnto8K1RtLC5/6B4=; b=xQmDE5Mveo5NtcAaqZ+QGTwaeibsZ84X7FIhmu9NRHyktR9Tif44y1uMbv8FFCtu7L lB1SXSGPaOfMqp+jqQb60O+Ix4RL/xYJFlXo1/lVod5DAwy0wSwCL2/ASbXSEaJpirqM 9kXXlR1UC3cBKgTj65AFL/IXT26K41NWV+SaUpj6+ulfRWJ6MxRyEmmemfAUiELgh5I1 j5OISj6AqJB8TH8etZqiLpDZ15sjMrauCXJiEJvpsleEnoe2c+pyYxnXTD1+8F3kPkHr HL3J8btGroYtk6ipIFZ0BW8YHLqaopJinW7PqhXHxOQVSnnEWX5a11z8a69yB3OHksb4 8ffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JAR371RM; 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 s24si5698225pjr.46.2021.03.03.05.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:06 -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=JAR371RM; 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 B25D56E8F1; Wed, 3 Mar 2021 13:43:46 +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 BDC9B6E8D9 for ; Wed, 3 Mar 2021 13:43:45 +0000 (UTC) Received: by mail-wm1-x336.google.com with SMTP id u125so6379092wmg.4 for ; Wed, 03 Mar 2021 05:43:45 -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=LL2CIStDBvdCQ2ilvl+8GEJmSghnQSGgGmDvpCxTU0Q=; b=JAR371RMHMFvNknWC4hTcGuEAbhD8bdPwtV8wy/zEUaqExQqn49iQu+3FZE5JeJ482 TTxTOhGQXqFarSADpG3hoP9sVweTfSwdInfl4ijt+5NNYhYgK44aT6oWR0AHJYEjy/NW 63j4wlV4giSCXJZMusdcHGwj83XWUOM3WtrQJMgEDJfDXyDq4YtRQdhQZ/g926iBrhok aTczenLvwexE8X+xuU8Zvz4M9PaqcOEwh7ohl+xI+weOigImuBmjT1S44SOWRe/BziJm LxsHNW9IXmqiXjDhBPGZdGejytI0y1AcpsV0fAhpF/9Gj5rVWwsbJrNWCXuMbunOUnkz koog== 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=LL2CIStDBvdCQ2ilvl+8GEJmSghnQSGgGmDvpCxTU0Q=; b=Ku8W8EN69uLWZ5G86dALHiYsXzwa3nstHYJ+bl4GUMajnsxIeMTvRCNC84JUUKmh1U 7aW/P/zZG+BxhfbTi9x5k4j4un4stfxgyxoDXqU3lSk8vawgt9f8OW666B3dLQ8o7mJv SY+tyoTUI4A+zliwMb5v6jO020XiNPEXyOb/GLXECpcRCINM1nJ4Y1WqmiV9GlR+Fe0a GLk2Zb5XIGd8hAd7JCA44iaqL51LF1HMF8Gi4oWDOxiGqjvCByh2JRou8gJmKNZt+lSp 1bhA488yzERKvEDIVybj3Rqc5U+OR4qJb3fSz/3FT/fbo77sUjz8Gj5/z7xlevEN38gW RlqA== X-Gm-Message-State: AOAM533E+JrilU0J1BoymPo/hiOj2GAHCzsgn5SjEDc8y9msaep6DrTw RTujPlULSUrpc2E1cECc8Zh2ow== X-Received: by 2002:a7b:c755:: with SMTP id w21mr9451964wmk.89.1614779024289; Wed, 03 Mar 2021 05:43:44 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:43 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/53] drm/nouveau/nouveau_bo: Remove unused variables 'dev' Date: Wed, 3 Mar 2021 13:42:39 +0000 Message-Id: <20210303134319.3160762-14-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: Jeremy Kolb , David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Ben Skeggs , =?utf-8?q?Christian_K=C3=B6nig?= , linux-media@vger.kernel.org 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_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 Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: Jeremy Kolb 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 --- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 2375711877cf3..0b94f8ae77291 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1251,7 +1251,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)) @@ -1264,7 +1263,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); } @@ -1274,14 +1272,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); }