Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp261591rdb; Thu, 24 Aug 2023 05:41:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLxbVGHs0mv0E21vFOXocw9ZJoguk9qraBqeDhRxNLX1sHP3VKAweRsneSO4Jr4sGDQLJo X-Received: by 2002:a17:906:53d6:b0:9a2:ecd:d95c with SMTP id p22-20020a17090653d600b009a20ecdd95cmr1349874ejo.74.1692880878952; Thu, 24 Aug 2023 05:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692880878; cv=none; d=google.com; s=arc-20160816; b=Rpl3it8+NcxFRTHqcXUPiPp+PkQIPo6ugsUGVs4df8mB5pPoMMqS+8jzgMXv/LK3Ls Puw+YFWXOdPv6qHx8Tzrut5L/Uxhy8w+IDthFByF+G/K4YYy1fUOly2cVPmgUjLr5FXK 3E7QkIrg0F3nDQCCp42fiU/aM6FLPvR1+pa0ZB9gZc9o9NNUB/VD515lpjtF+gPefQAO lTQidDo105QGvhMoVzcM/mELtCfwiuY5daiFz8CkFbLRn7nDskWUFNhlU7qN3stdyX0q VWXjcgPUwx6V1fNd8ffADsp+rm5FQffBrwl7vHXLRlxSvdF09sehYJ4+X5q0VcWr0HyO pSXA== 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=Vmc0D9Nqt5c8KbPm1ZXbDjfuuxtDtFRsr6lxMV+kOZ0=; fh=r/LP87X9GYs8JIzUQuNUW1UpcOWZtFh3V3s4Mmocfbs=; b=ivTDLgPqTz+Z14bNFu2jLntO9B2n/PlypqIsDlH0LBdx3lTxlvh5di3pyaMzSVPMUI O7KY3CX4RjiUtluTZFKa62ftckOh3zWbDPzw9+Yx7RbH+6ENnQAVr3rNijKPI6QklGgZ Kws2dj1NpyU5w/S+zkLeJHLywf6TrgiOTf3ENLwIuePsjoNDwx5k/OeqPpXCY8pdyn9M rBHQyvsNn/w/anWb9L+bCoNjzqT2A0tBemJFZ8aWVhp4yogmAn0BBGqQjfQKQsyagM3v K7PtQG6bjEDRLar4xYjR2BHCXLRqQ6wAu3JBwIe0iXX1GzS4yuvdq+c/QZz+KLj2yMv+ j/4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KttCJ0rm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id la22-20020a170906ad9600b0099df733c29dsi9613673ejb.285.2023.08.24.05.40.53; Thu, 24 Aug 2023 05:41:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KttCJ0rm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240433AbjHXHi2 (ORCPT + 99 others); Thu, 24 Aug 2023 03:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240373AbjHXHhr (ORCPT ); Thu, 24 Aug 2023 03:37:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97FAD10D0 for ; Thu, 24 Aug 2023 00:37:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 370E163563 for ; Thu, 24 Aug 2023 07:37:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 866F2C433C8; Thu, 24 Aug 2023 07:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692862664; bh=KGkXec50qVn+1NsITKmeoQrqKB+TztbCnmD5jRNHgpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KttCJ0rm1DZdC3ckGCxTA4VK+U/KcZKxqkEpb//ZNS2bpeVJDb8nM4IijLvw8FnY3 MwJRdgDRysHojfTaGb9tEM45EewO59EIwwM6qihMcjZCP4jU6aCtx5jsnOUUr0ic04 xOR4pnmArY+PxZsNMwQqT2FVvTy5GybCaL8UvZkHrumtqsIxzJkIqU+FVmEinn0R1E 08U+pHUbz1MSbFfgM+spPwkBWkWvcwAyHYtiF9PrrfOx5bd9BAISpLbaSHaDZ/XCkn jl/kiJ75be+1Q0awXKU18+dwSuoAfYda9UteXMpMJRwxQoo4aDPEqNNRfosCVWVxGG /XYls+wznr6eA== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Jerome Glisse , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 07/20] drm/radeon/radeon_ttm: Remove unused variable 'rbo' from radeon_bo_move() Date: Thu, 24 Aug 2023 08:36:52 +0100 Message-ID: <20230824073710.2677348-8-lee@kernel.org> X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog In-Reply-To: <20230824073710.2677348-1-lee@kernel.org> References: <20230824073710.2677348-1-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_ttm.c: In function ‘radeon_bo_move’: drivers/gpu/drm/radeon/radeon_ttm.c:201:27: warning: variable ‘rbo’ set but not used [-Wunused-but-set-variable] Signed-off-by: Lee Jones --- Cc: Alex Deucher Cc: "Christian König" Cc: "Pan, Xinhui" Cc: David Airlie Cc: Daniel Vetter Cc: Jerome Glisse Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/radeon/radeon_ttm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 4eb83ccc4906a..de4e6d78f1e12 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -197,7 +197,6 @@ static int radeon_bo_move(struct ttm_buffer_object *bo, bool evict, { struct ttm_resource *old_mem = bo->resource; struct radeon_device *rdev; - struct radeon_bo *rbo; int r; if (new_mem->mem_type == TTM_PL_TT) { @@ -210,7 +209,6 @@ static int radeon_bo_move(struct ttm_buffer_object *bo, bool evict, if (r) return r; - rbo = container_of(bo, struct radeon_bo, tbo); rdev = radeon_get_rdev(bo->bdev); if (!old_mem || (old_mem->mem_type == TTM_PL_SYSTEM && bo->ttm == NULL)) { -- 2.42.0.rc1.204.g551eb34607-goog