From patchwork Fri Apr 16 14:37:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 422528 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp447953jaf; Fri, 16 Apr 2021 07:38:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnwHa1+rKbm1Tjqnoduxb4ADoCeVu2W7Crw+yHPOMqPZJS+WZfttVgT4jVuaDOoxOhuAq+ X-Received: by 2002:a63:5a50:: with SMTP id k16mr8309774pgm.185.1618583909349; Fri, 16 Apr 2021 07:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618583909; cv=none; d=google.com; s=arc-20160816; b=Bi77T5lxCtCYwB6ZRxsYyCBiX3PZZ9tEDGhKnq2T/ZP3BGZ2LntwoADSLhqGyyQjfM N0r5yGPuhgNELpU/0RUd5uQmoYgIQn+8C0GDZ1zaat2FsEezYjyL1N5/A66suywLORDw B0Zdtk9ZSq84rxomZyBKJvfvudC26J+hKOt2ZTpLZMJVzQ9XpzRUuQLd0JJ4I5BdWZKe FmGBpyW/+0Y4YAAufYICdiE2E7eAH6j8M+RxC4SQiTGHm+BjxOpd421seK0DtjSlUOvW pdMNvADcytBWmnTU4BwLd8YTqANvegmyG5w1X3LvV8rbJRnHemvv68k5qQVV3fJLsrdM p15Q== 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=N6vojmZkPJ0W/HM2G539IcIFG9CT0JLwxTEhHQdKtaY=; b=VbBtAFoLMY9sWn+Z6rjcdqxu9yYyK/3aFAfhQuhPq8L6PPEBCmO2i0N1OMnSmCc147 nRAS5LL1OYaZDKj3kjuC0ZkYbtuGKSqXrQUoUYo0IffXiw4VDqWKKaRga80pacIDJ/gp ue+YuVHha/zEZ1/9FB1D0TPkggM+AVhErH8pWChJOfnuTFjNSRmLrBJc0iVOPr2Tj9li fx5svPqQlpGkR8fS8SjXlcGBwsipoxtRR9xYTqCAVT+6NgUU5QAp7bnJ7+XZAY+QeBrB 1YAfGKOpNgSOngzC71Hb0DTnS+Hpdrzog51dOYKOGLTuSLKjks1cWjRirT/wQI3xN91X Xi3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rm9JZIGI; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 42si6773537ple.242.2021.04.16.07.38.29; Fri, 16 Apr 2021 07:38:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-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=rm9JZIGI; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 S244534AbhDPOim (ORCPT + 3 others); Fri, 16 Apr 2021 10:38:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244522AbhDPOiY (ORCPT ); Fri, 16 Apr 2021 10:38:24 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA4B6C06134C for ; Fri, 16 Apr 2021 07:37:58 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id o20so6273583edc.7 for ; Fri, 16 Apr 2021 07:37:58 -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=N6vojmZkPJ0W/HM2G539IcIFG9CT0JLwxTEhHQdKtaY=; b=rm9JZIGI7J8NRlsShT3Jm2NylnVTVIfGIeKW7Q1CXc8kPPNkWZKGqQ6MoWeTDN+jAM u2Dybq6Xdr1oghJSAxt/2RBf3XkhmwCSdKZuh6DGDh8XhyGoVk3FQrqp/6PoCIv5weuO PD1mxtYjsGeHgTVQYJk3Rcld+NVV6SY6H6Hg6kRv+SvOknye8SHOZSveDpoc92p1m4OC QWZw1sqOd5ppK/hMGjGSHPLowZpmCo2Vd0IazZLwQxaH3IE3jLa9MSoOH9A91pauiC10 rc2kusC6vNjyYx06Va744Lews3kxxZkiTSM29kInghaUCaxCe0JGVE/DNBzrir9RV0j2 xaOA== 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=N6vojmZkPJ0W/HM2G539IcIFG9CT0JLwxTEhHQdKtaY=; b=kVGynDtElkIv49n7P16zH/XZx1qTjSOjz3wmdpOE831/tQGLWAPpHjSI+1LzropVEQ 86Hs7Fa3xY/FYbFedFy/78P2lANq1DnnBoNzPSwIFi/OVZQCrjKPUYOhQKiHNq4ds0Th v2RC688ZYfpfj6WKVsvDrmWRUbCnYMUILlNzO0SL6swvN0Gm2+Wp1beiwQ4797qGcfdC x34A2BERoj40D6FGQGC8PWRnt1Oj4pVK5ROlkbX1WvkxU54eNwtNpDezSBKagZzl/lOE Sp4dv49bGMMIg/c7PXt0XqfGdpGIbZGH6mfujtal/7urzIEDtZpD0Xdo0ATEC/hNzgPA PlMw== X-Gm-Message-State: AOAM530kLYey9FEerk8qLxkWpB8gyE0Aplep+cMS1GE9KBns+OzR5OKq oNWnZkNLbosEtW+LnXroifjpZw== X-Received: by 2002:a05:6402:1741:: with SMTP id v1mr10264129edx.127.1618583877582; Fri, 16 Apr 2021 07:37:57 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm1326523ejk.93.2021.04.16.07.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 07:37:57 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6n?= =?utf-8?q?ig?= , David Airlie , Daniel Vetter , Sumit Semwal , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 26/40] drm/amd/amdgpu/amdgpu_device: Remove unused variable 'r' Date: Fri, 16 Apr 2021 15:37:11 +0100 Message-Id: <20210416143725.2769053-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210416143725.2769053-1-lee.jones@linaro.org> References: <20210416143725.2769053-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: In function ‘amdgpu_device_suspend’: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3733:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.27.0 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index b4ad1c055c702..eef54b265ffdd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3730,7 +3730,6 @@ void amdgpu_device_fini(struct amdgpu_device *adev) int amdgpu_device_suspend(struct drm_device *dev, bool fbcon) { struct amdgpu_device *adev = drm_to_adev(dev); - int r; if (dev->switch_power_state == DRM_SWITCH_POWER_OFF) return 0; @@ -3745,7 +3744,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon) amdgpu_ras_suspend(adev); - r = amdgpu_device_ip_suspend_phase1(adev); + amdgpu_device_ip_suspend_phase1(adev); if (!adev->in_s0ix) amdgpu_amdkfd_suspend(adev, adev->in_runpm); @@ -3755,7 +3754,7 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon) amdgpu_fence_driver_suspend(adev); - r = amdgpu_device_ip_suspend_phase2(adev); + amdgpu_device_ip_suspend_phase2(adev); /* evict remaining vram memory * This second call to evict vram is to evict the gart page table * using the CPU.