Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1948909ybv; Fri, 14 Feb 2020 08:43:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzW/fcx0BV91tz+SWPe7U84y2l/6RF7AOY/AW5ymaxr9cBcvbkl7Krc74yqFxTE3KWdGdao X-Received: by 2002:a05:6830:2361:: with SMTP id r1mr2936168oth.88.1581698606563; Fri, 14 Feb 2020 08:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698606; cv=none; d=google.com; s=arc-20160816; b=QzQ3SSc5QXxgNknodEqhk0Zt5jrODNpHraIEymDB4rKbpMWvy7bDQ82crgcD7dVgSh faLOrrKzC6QbST/09040LVmUIADbkBNtMJuPT+n2/VtPLe2aloARltt7HEmE2YppFkQL EXLqAsSxVs6RfbgmAxzT9zOWDmvqzDvoeFvxzPaL6YaDuALDVf/lE0Yz6zrallwLRFwD bZrovYA6Bu9ecyC9c/9Gx6dBrhpYIcDgImDPeP/JEmffuhbT0ssXVaEium0iKefNb8nz RJqUi2SGqHc2c+MUjF31Eb4nv8O/V9DrfqK6B1HvPyEsvEgjWzD7WJZelR5h39I4RI3D ccHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WI+eHuQ2mIFLMxf0G0Xsxu9CTL04BrFF0XcLDEmLOaA=; b=l5VpoG1jJAvwlFnl2VXcd6OrTBLxjzIwWJkGwEbrvw6pOG2iY9zIm5YIwRG1qVjxiF hf7B/dLG4MfWDb4f7e52FCDEL/gVZlwljVGxDIbdeuThod0IFwlHXZXxVej402JOwVyn tri2zyaKJmoAibb8Gb+3HVoNVNOnErGaXoZyY/Oxt2XmkLPjxsZO7KkR+DsavGv0SUnq TqhqJ8DozbNlIpQns2nOUa5fpye4aIjf0HuZv2TkhKaUo6cPzlLUVr0egRNxh0RibOk9 qEBomt6zJzq7uRVBuc8ba0JvHpO96t7+f6mlWj/SELjK5UV1Q9cRE+Rwx6nW2nv/ksw7 PiyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=blYfuMWm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si3086433oif.92.2020.02.14.08.43.14; Fri, 14 Feb 2020 08:43:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=blYfuMWm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2405880AbgBNQmi (ORCPT + 99 others); Fri, 14 Feb 2020 11:42:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:57602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405428AbgBNQWR (ORCPT ); Fri, 14 Feb 2020 11:22:17 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 450582473C; Fri, 14 Feb 2020 16:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697337; bh=9Et37cIllYVrbRLcETJX4azs8dFhX5iB0xAVVervu7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=blYfuMWmBX0zgWuVBBwNNJXmI2rvRGlrCe3odFDW/HlGilg5yINUMtkgHjzh4jsyn poLC3kbCAZHItmw+XM+Q0sOFMxEkA9qaa01VvUOtzNoqNnIptudEUo0peun2kItR7e eGIrlJehqOZDbeFD9rolQS4GGNBEKAeKfk++vCKs= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: zhengbin , Hulk Robot , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 043/141] drm/radeon: remove set but not used variable 'backbias_response_time' Date: Fri, 14 Feb 2020 11:19:43 -0500 Message-Id: <20200214162122.19794-43-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: zhengbin [ Upstream commit ac52caecbcf2c30ce95b2536c1caf2643c49b91c ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/si_dpm.c: In function si_program_response_times: drivers/gpu/drm/radeon/si_dpm.c:3640:29: warning: variable backbias_response_time set but not used [-Wunused-but-set-variable] It is introduced by commit a9e61410921b ("drm/radeon/kms: add dpm support for SI (v7)"), but never used, so remove it. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/radeon/si_dpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index ac7ae206f2e71..06c7244a1f9c5 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -3695,14 +3695,13 @@ static int si_notify_smc_display_change(struct radeon_device *rdev, static void si_program_response_times(struct radeon_device *rdev) { - u32 voltage_response_time, backbias_response_time, acpi_delay_time, vbi_time_out; + u32 voltage_response_time, acpi_delay_time, vbi_time_out; u32 vddc_dly, acpi_dly, vbi_dly; u32 reference_clock; si_write_smc_soft_register(rdev, SI_SMC_SOFT_REGISTER_mvdd_chg_time, 1); voltage_response_time = (u32)rdev->pm.dpm.voltage_response_time; - backbias_response_time = (u32)rdev->pm.dpm.backbias_response_time; if (voltage_response_time == 0) voltage_response_time = 1000; -- 2.20.1