Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1769492rwd; Fri, 9 Jun 2023 01:43:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51YUOYX/Zvbsf0fUrv0Z8mRCaUCZKZHI04w7nk/ctPCiGPTPsMtherpy1f+GC86RIJly8z X-Received: by 2002:a05:6a00:138f:b0:64d:6db8:f191 with SMTP id t15-20020a056a00138f00b0064d6db8f191mr791550pfg.27.1686300186663; Fri, 09 Jun 2023 01:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686300186; cv=none; d=google.com; s=arc-20160816; b=IkjNGNafHwfNT1tS7AWzyozRLVFo0Yn2fpBJTnmK4dlpphDvLEuQiPVRHJj9jiJHcf +/TbVdonxWCPCkG4WvfKKQNL65IxuTtmFN9G2vv3wHBYuK/NdNhpZ3SOxj9dLmHIGL+d T7AnhqdwDcxHFviiwztY3hz/Cuc/k2qHGC2i7AmJQmQAIa+C/2me3IQTgH+GhJGfYZSp hjUP3SntAMSmYWEApod/beilWo/PYxI7W14Zd50heJnNx8sPe0jnFcWdAfooWylPGaLs QLLcx65nqtbb51H+TWFm/cSjVnbR+M0pfOk2xYaDKtoGgO0Fj4DAeFo++NjKNXehKw0A tFww== 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=F5ZQuwZUFWrFkDSkLi3gA3Aj0pqAXvDowH05JkYspSk=; b=KdCJ24ZD1ZQtjVZq72QFq1YrFRSAnl8CG13ue9ZLe/574qun2Z1bdgTjXiZxwaYJPx wE4RKxZLmljBwiAbj5O2empFHWrQeLPwLvoWOco0ENwijlWUOm1qwVGZZe9E5tWXEySI Ht9h6KFvLbIEMCvejhMfG24x0/YKInIi1hIBuP30sb9hqJg1+JZf78T10MNBCs6NOFUU 4oMeQD4HCXummeWk1f0C0qYfueaY+h6vXZ0wgsnU5uHnJ6ULngdLFGztQo74DrpbDVoV A7MFMK1FooQRKXWhXf2b9JqyIoVh6Bkc30tZnsuR483f8VuFP+YPEqDtA58Imwep/l8p zP5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SRGfPbdT; 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 y17-20020aa78f31000000b00662ba7f8a5fsi2152607pfr.170.2023.06.09.01.42.41; Fri, 09 Jun 2023 01:43:06 -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=SRGfPbdT; 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 S240441AbjFIIUy (ORCPT + 99 others); Fri, 9 Jun 2023 04:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240403AbjFIIUS (ORCPT ); Fri, 9 Jun 2023 04:20:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C811A46BB for ; Fri, 9 Jun 2023 01:19:03 -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 A9FC661718 for ; Fri, 9 Jun 2023 08:18:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04492C433A0; Fri, 9 Jun 2023 08:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686298699; bh=6akk4JUAUaBhXz3lKYWX4AGbnKk9n7L5+hUo0G3vHog=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SRGfPbdTg5P0P5hck+ds3NNdWQ5elY0yQqf+yItP1gqPH7/vS4EDPzjjaVSjt6sJS LHkQPsYmqYQGsNr/lb9C6Mex5Hx/s1Cfc75Bvq/GMl+25LG/3EOmE4RN1kc1nWEMDW W3iJAx/3/kxPGy7c3d8pBe80zNGfIfSapNe+9dKHL+cQeIwsK3yWdvLws+lSJQTc4D aUYlUhZBA8r+ZRPC0buaaBDHnEZi84ccerIrEzvUE35TKk838QrxAnQrzUVaG40fkX g0rrHzETaqbB2OwICmWHZ5D+QA+o7v90XJYVl9m7iKNRRBPQASP0GEqx7CraAy9xbE 0LPtipn6UiWTQ== 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: [RESEND 14/15] drm/radeon/radeon_ttm: Remove unused variable 'rbo' from radeon_bo_move() Date: Fri, 9 Jun 2023 09:17:17 +0100 Message-ID: <20230609081732.3842341-15-lee@kernel.org> X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog In-Reply-To: <20230609081732.3842341-1-lee@kernel.org> References: <20230609081732.3842341-1-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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] 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 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.41.0.162.gfafddb0af9-goog