Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp173628pxb; Wed, 13 Jan 2021 00:12:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQm179ti18bude9rqn0SnMWm7983lwkstngnChKrW4grl3QvHfj2Z6xdbqs2h/ND0BDZbE X-Received: by 2002:a17:906:94d2:: with SMTP id d18mr731101ejy.94.1610525535608; Wed, 13 Jan 2021 00:12:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610525535; cv=none; d=google.com; s=arc-20160816; b=avJ2xaHvR7EUFP83HF8m+jgnoWLv6qOR81Stu/Z5rO0iMzs1Bw+4IY0yiohF+pxXgx fT9zUPhLRy0ZobXozQqMgj5yj6FDbRL1a5j1OSiuiIiLC/j7O+cL7kat2JMWUzYubBhG 9uXm4gh7DNGYj/8wHPT8KA1sQPuxU4nRzCEyIT68icUvXVVqaoZfXvYBE92wLgdz3RpK RrupnkSeb9uUQZWvkVBKwKZkBt3QcPecV6a/oaRQGyhbSFjTlKvCGcQxq1MmGMULwfe6 51SFcWTcFjULJX8v3+tnX6E0HXTDEO2FX90UIMoBkuYXl2+AKkxm2kmYRnBuCX69LN8G lcaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YPaIJ4NMJ9MMh9q35TQI1iqMYfx8RWuRYjdqoNV8b68=; b=rEKHAK0QVbNZNufR0EclhIMdpBr8a+sSxv+y1bzDgXMxGCoZI53cQvGetGdBthFcwY b43FiLfF55zoOI+LvWdPQO6TuKN6ERdgHmrV/VWMDWm7GT38WfFZnfNeCYCvHYCBg4Oc HnJg7fDe0fdBX2uE6OCu13Z2nq4fscRw/V3Q89mQySDViQxc34bpq9iYYWzFNjgd1Ccq YLvwHJt9MV1Hqnv6eXGXyg6zNp7vmWHOMApz1N7vP1yKs9cVpPOJw8fUTmB6VSP+vouk 41GI3T4x2JDF+jqXVM/9sI+0Cl/D/5m2H1RmTos+lRcIA3DtS9mb861kYgSE14uQZSCJ wLnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pl0iBz8p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si689017ede.501.2021.01.13.00.11.52; Wed, 13 Jan 2021 00:12:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pl0iBz8p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727153AbhAMIKB (ORCPT + 99 others); Wed, 13 Jan 2021 03:10:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727072AbhAMIJ7 (ORCPT ); Wed, 13 Jan 2021 03:09:59 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC21AC061385 for ; Wed, 13 Jan 2021 00:08:26 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id i63so688215wma.4 for ; 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=umt0mawCNidMvTKBka0/ccheRGLCkv9ASPxnDaYxOJfhXy8z6cCwgI1Qot+xtS0Jqb ZTzDEuJ4qHXyB9ffydIO2Erx/EUIYgepCHzcIakcw7/BrPT2Hk2Q2zs6WnCY+L/O4MWk C6jsnqWGtGuOhfgaVd/w6QSlbXuBdZ2cblumVM0arE3MbZKfnx3EHu98yNXqajogyiaw WQPOTPQN7glZqy7IA9BEYb2I8UuPYJNp92hT0D3ZPSTZrZwAnBVdbepnJ6HPO1NMEYee CL3eKOo+9C/RF67G6i85/3zEscz5ZFnN63JWL/RHTOQJz3Yx/vCOWVowtOGU7a7SsLCH LTDw== X-Gm-Message-State: AOAM531s8jkxUQcZtg6WR30oamUg/Hare16FqJX8hDmd+J9M1iwZviOb iwz5czlmzCdB3lLotZPhc/HP8Q== 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 To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Ben Skeggs , David Airlie , Daniel Vetter , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , Jeremy Kolb , dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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); } -- 2.25.1