Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp797065rwl; Fri, 31 Mar 2023 02:29:17 -0700 (PDT) X-Google-Smtp-Source: AKy350Z5KQnpgwW4fH6PUHakI/5q7oxYFs+aCNeI+prh+vnqG6bNHi/ovs9imM9hjlKmR5DxPN3u X-Received: by 2002:a05:6a20:8e19:b0:dd:dfe4:f06a with SMTP id y25-20020a056a208e1900b000dddfe4f06amr5666450pzj.3.1680254957636; Fri, 31 Mar 2023 02:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680254957; cv=none; d=google.com; s=arc-20160816; b=h61ED7d5f8ArvEA4B4pEqGss36VMgyl3Jk388DXUnnUx2Ha3sh6B539GpTRg3/wpti r40UHMGz/2cPLxk2cXOLokgCZR+K0d5MZi9wuMl+zSNRqDecn3zfrDYMAV0IQBmo6kJi 7xNNh6mpKAiQiXigzYf5wu5r8PmyYro59eWpGCD9F0ctD6wrkFTJGZhZ9RHxquAmxB/+ 75a1gNrI3Vv1GjMcboL7dZbgjciEB6gKcakG4VvnUJHiLjM7qJm5YctAuwqhawTV1hMN ZfNBLtSnI8NIv3vwUzcXzgbgkCJGA5HlFaJfLFeIPBtdSUeuUrlsO6fbcpTgQAYbzpbi QOOA== 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=X5eJSkJklu0cJjyI63EHEpoPmasJKeyqePWzvpqguJw=; b=fUzdVX0+iCeUYuF1Kn/3c05fxdkcA3MxBNkw6MUy7jk2X1RKIY9w1ILSd4oxnmLH+R KfpQYmnqgAWTCvTtY8N2rkHxvFVwZ6Oc26g3BMbTGKH45Jdt0JA1wSNH2rZp5PtjDbmg n/3FvYn32Be33/Sp9XYCbpHWPo7M7LIatXga0nnByM0X3rdC+MWDC8Dt7sbew/P5vkaX nDzvcEDm5261ahlpbkSoMCzomM9GKpHdXsE5gxK23JTPKFafMr9q2rPILPGOj6BrLUh/ hi3Hn/3FrZmeLGn+pqxRxn85OfOdBC8z6G5qku55aVZD8nQvSIiIwAeAvcUoKdm8JMD6 Rxlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dAZXFCbK; 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 h11-20020a65480b000000b0050f7c2037bfsi1754303pgs.605.2023.03.31.02.29.06; Fri, 31 Mar 2023 02:29:17 -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=dAZXFCbK; 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 S231782AbjCaJ0b (ORCPT + 99 others); Fri, 31 Mar 2023 05:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231616AbjCaJ01 (ORCPT ); Fri, 31 Mar 2023 05:26:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBAAF1CB89 for ; Fri, 31 Mar 2023 02:26:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7089B62649 for ; Fri, 31 Mar 2023 09:26:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1DFFC4339C; Fri, 31 Mar 2023 09:26:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680254781; bh=Xj4WyozKPmZtTN1kClJTBi/X5tfzwvcxXXrKvf/WUhE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dAZXFCbKCx3fKL0doDoVVk5L6sJXUiM+NHgn9vejM8I7z7I0QiyJMRnBXSMO/GJJp tAJn9X7SwrcuHi0CWHJGVdad+YwKNqZS6jRDaiIdAGOiJ8r2NJDZRU51HoTZvGx2l5 nd/DvOqnztIsmLzrKXVA2FxmEUE7FA6UkmYPQy6230mBRIikOOJ5FnWpGpZdREATr8 pOhWgFxK13pM9pdTb40qb72FZY4Efp53sy9K2nt/VbfsGRcAMyjyWlQN1RzSpcWHzp gM7o0R32UFbBwBS6Q3NRgj9FKi8sVLgpUa0LU2lZlnJIjrFVHQ7OEop/9+1el27VDz epdoO575oQg4g== 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 03/19] drm/radeon/radeon_ttm: Remove unused variable 'rbo' from radeon_bo_move() Date: Fri, 31 Mar 2023 10:25:51 +0100 Message-Id: <20230331092607.700644-4-lee@kernel.org> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog In-Reply-To: <20230331092607.700644-1-lee@kernel.org> References: <20230331092607.700644-1-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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] 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 Signed-off-by: Lee Jones --- 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 2220cdf6a3f68..0ea430ee52569 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -198,7 +198,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) { @@ -211,7 +210,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.40.0.348.gf938b09366-goog