From patchwork Fri Mar 19 08:24:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 404759 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1171019jai; Fri, 19 Mar 2021 01:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTaF3ccVoPvuGSbM32O+XX+6CAeAHP+esLK0HgEvJox/q5sXh/XTE9HLmsPVedj83B4KdK X-Received: by 2002:a63:df10:: with SMTP id u16mr10459337pgg.308.1616142294426; Fri, 19 Mar 2021 01:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616142294; cv=none; d=google.com; s=arc-20160816; b=gMWQxaNScRevT5TgEa1rda8m9kTAFTSVwImO+Fxd4U9iqst4j66V31Z9n0I/f5rEp1 Ju7bI54clVj5OISg1XQOfh0A1vxLvQxeuX6LQCjkcVobpaj6oiJkQgY23ahOgXgk/Fhm vUklrCO9XubFIuBZb+Mvw+5Gf2SVEWHNXTT9lE2kI525bsnBNust4Q4kLhZPcXDfHelk KRwaGX/BhirGV/GaSKhwJtvukPDazeg7TE0U8UiCnAOO7jXwgMDfO7jbmOGfCixqDPyy X8qchZiZ9eEFW3RrtDMb7gLFcx/qS5oaSEgGxCkdi9BKp/Ad8OoBu8BRLGYwQUO2mH6H QJbA== 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=OpyQ3OZQ8dqXIb+timSIawhQIVFHMsEYMWqtZtO4Sxs=; b=zrgoxFUYiiTzUOx9ez5/lowfZTBcwKHGNLJn+1kLn4MKMGCUrzgr6dytYbuAYBA3DS DC+AJ6V5BI4CXGNTdtmhGvfgzMIw3f2K8z3d2oXYrmALL3DpWHbjD5uOqDbfvZ3vq7SU AJQT0FnbPWF3YPuflvCRM9Uw81TIBBGcxOEwd7K2ahVOXGdd2dOL/1lduQNas2xQv0q4 yJS3GMdCaUJ27/ndnv5LaqXLHqh1FEOOPglyhbM08oS/nEhottxh5NHC0OcVbL9ROxwg +u3i/g71mlrBp9eYYVaW0v7/Jh8riDGiL6GM8UHCbVo5BHG6NXEMpiJ4jTPgoSZA7DfC 4fcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WkLf4se2; 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 g2si3286047pfv.277.2021.03.19.01.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:54 -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=WkLf4se2; 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 C34E66E9A5; Fri, 19 Mar 2021 08:24:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95CC26E99C for ; Fri, 19 Mar 2021 08:24:43 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id w3so8266631ejc.4 for ; Fri, 19 Mar 2021 01:24:43 -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=XGGhPwZOypkRysPaew36bi2SL/oARoSOfv3/qOj60LY=; b=WkLf4se2ygcdBQIKbKwxqNveqB4koJlwdEfRBk1zP567hFamNxEMmDrYvU2lwE1cGJ u/AMNzO8QJnK7GmHddKQOpo6CfX1WGlP63nCTGh6wvTpl2Mo0PagzBkfowMdUOroYUga SaSe3CUWN0oq0wfCbBXT58D57a/vt286ZOMWRekrefpL46cI9PkOM9Sr3QR8NlxtLtJ7 VW9x7B7zjtJPr8y4Hsr491F/ugrzs3zKGPkVBKc8RaMul6eV3CeguJuqGPIuWdfcUU72 Z+yo/fyhUyqdEeXXzp14uKEhsbgptSrlNN2RwpVQy4ts/emeD7BM3gMv/SAarogZXO05 oiDw== 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=XGGhPwZOypkRysPaew36bi2SL/oARoSOfv3/qOj60LY=; b=h6XDxBUb71ZngK9J5dVzmxpRIzvI9ZisJk+FP/f+8CSGu6DipCTKBPHJB/v7863EKO TDjyQWClImrrXf0wEu3MzHa1b4uA9GUCr1KYzMY1MtozGqxaqc1YYdwef9+CG6eaT+ki lIOYFehSH+sEtnVHeJDnYrBBcH7HdXoXSnldVtNkAQAJ/vSiqlO1harlfepmPardA8Il 8mOxTON7EcKF7SlxazGtEzuVePtnThf8zKWtIZ2ckReCR9bw1hfOOpCmGa0eyKF+CeI0 I2bTMnWZy+9Wx6IYZeSBY6uvtnpiEZr5uqsU3eYYIt1bNo/+vG7iAW0U0jwbxz3Qwd72 z/YA== X-Gm-Message-State: AOAM533dNBqbMssSv8WlJAjLxc0vBV6gGLtC8aIIKZ+IUBjMdiEzkoU9 MCZfdO0/8s+D+cEzYpxMSWUjJQ== X-Received: by 2002:a17:906:3388:: with SMTP id v8mr3043046eja.278.1616142282308; Fri, 19 Mar 2021 01:24:42 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id b18sm3273727ejb.77.2021.03.19.01.24.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 01:24:41 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/19] drm/nouveau/nouveau_bo: Remove unused variables 'dev' Date: Fri, 19 Mar 2021 08:24:19 +0000 Message-Id: <20210319082428.3294591-11-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 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 Reviewed-by: Karol Herbst --- 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 281e9ed139895..913035ab85ec2 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1250,7 +1250,6 @@ nouveau_ttm_tt_populate(struct ttm_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)) @@ -1263,7 +1262,6 @@ nouveau_ttm_tt_populate(struct ttm_device *bdev, } drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_alloc(&drm->ttm.bdev.pool, ttm, ctx); } @@ -1273,14 +1271,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_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); }