Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1930131ybv; Fri, 14 Feb 2020 08:24:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyIB+5gprtJ107e7B2AviqtHLivmD1RSChiF+jIhKvdLELaijeLAEMHjt5Ax9Hj7DHIa2du X-Received: by 2002:a05:6830:1e64:: with SMTP id m4mr3047306otr.244.1581697486236; Fri, 14 Feb 2020 08:24:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697486; cv=none; d=google.com; s=arc-20160816; b=m2B4cl594SHbNyBLVKuP3iXaZIGqRQ3ZDC1ngiaAP3Bq7i2EZTTPPUvxA0hAPd7a/L aIXs1kGG7jr26+am+E9s4x+4xUXddhqzHfkU4miPtjFX6amEYYByeAAN2J5mEa77GrtF FkBamPSF8eTSTpPRYhuOKQtUVonJ3LNQyTGcOMes+Ieeui7KnyplkWimfXcE8VSCgdAK 8HFm7CEJqdmnTpRDlY8VyyVKSML28f3Mr6k2udfAVhyFWpe5vBvNyCA9J6H8zrBwEs7X zX+29DeH11E9+2xq/tPMGHk734mXtNAd5EmlgJerrBVpE10UR0m4jtTVlFvJ5O3YFnpu F3Vw== 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=g7e+haIjmgOo1qBZZGY3i63pNI3TyDsulGLHzwILuMg=; b=OBq8c6uSKLSM8Vz6aqA8KR6W9TviV/Yaq8uHxqGvIhV5trm856YdGWPpgn4Vnp3bsa R6zjv2QIA5GYlKEmn5hhn9munRII0HEYX03JwrBrIdofm7nebhy3mW5SkJyTr1nkk1LZ tNZo4vqGcU1/0Hy/Nznc7SFQShDpXTslnKriQ3CDvdBMvsexwTjryYvp3kuOVcEDEY4f wvTqk96xtyopKCudrxCd62eVU1MRgIT6f0i1HR3Rc2K5cprbvT9oFwEZ5P3/VMtGDSeX UXS4rl/0uwRuzDIOd+479JYXp0ucNAkpj9eBIu0YwARQakTAX0JP07XrX7rQoscvIIqA K/Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H7BOJ13f; 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 n1si2977402oic.225.2020.02.14.08.24.34; Fri, 14 Feb 2020 08:24:46 -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=H7BOJ13f; 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 S2405804AbgBNQYE (ORCPT + 99 others); Fri, 14 Feb 2020 11:24:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:57814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393201AbgBNQWW (ORCPT ); Fri, 14 Feb 2020 11:22:22 -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 73AE4246AC; Fri, 14 Feb 2020 16:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697342; bh=rWKJNV9Sbr1m7wRyPB2Ede1g5VawtcrzSvOZgyNhgN4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H7BOJ13fLTfcve9Pykpf5k31TrXimgAamPPI4w23PIwtOCfmxqBQhAM0Emxe7rbvJ hApHqSDKKY9bhBhZZ8gwL33jJZ3O/7jscsTGHRdQOJJ9MBFYJPemnokWIyTySLS+Dx +q4MRGAhKwggdL4H+I00naC6C9sZG8CKk411eflA= 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 047/141] drm/radeon: remove set but not used variable 'tv_pll_cntl1' Date: Fri, 14 Feb 2020 11:19:47 -0500 Message-Id: <20200214162122.19794-47-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 dc9b3dbd28744510b78490dc6312848a8f918749 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_legacy_tv.c: In function radeon_legacy_tv_mode_set: drivers/gpu/drm/radeon/radeon_legacy_tv.c:538:24: warning: variable tv_pll_cntl1 set but not used [-Wunused-but-set-variable] It is introduced by commit 4ce001abafaf ("drm/radeon/kms: add initial radeon tv-out support."), 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/radeon_legacy_tv.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_legacy_tv.c b/drivers/gpu/drm/radeon/radeon_legacy_tv.c index 49750d07ab7d4..3133f5dfc239a 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_tv.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_tv.c @@ -544,7 +544,7 @@ void radeon_legacy_tv_mode_set(struct drm_encoder *encoder, uint32_t tv_master_cntl, tv_rgb_cntl, tv_dac_cntl; uint32_t tv_modulator_cntl1, tv_modulator_cntl2; uint32_t tv_vscaler_cntl1, tv_vscaler_cntl2; - uint32_t tv_pll_cntl, tv_pll_cntl1, tv_ftotal; + uint32_t tv_pll_cntl, tv_ftotal; uint32_t tv_y_fall_cntl, tv_y_rise_cntl, tv_y_saw_tooth_cntl; uint32_t m, n, p; const uint16_t *hor_timing; @@ -716,12 +716,6 @@ void radeon_legacy_tv_mode_set(struct drm_encoder *encoder, (((n >> 9) & RADEON_TV_N0HI_MASK) << RADEON_TV_N0HI_SHIFT) | ((p & RADEON_TV_P_MASK) << RADEON_TV_P_SHIFT); - tv_pll_cntl1 = (((4 & RADEON_TVPCP_MASK) << RADEON_TVPCP_SHIFT) | - ((4 & RADEON_TVPVG_MASK) << RADEON_TVPVG_SHIFT) | - ((1 & RADEON_TVPDC_MASK) << RADEON_TVPDC_SHIFT) | - RADEON_TVCLK_SRC_SEL_TVPLL | - RADEON_TVPLL_TEST_DIS); - tv_dac->tv.tv_uv_adr = 0xc8; if (tv_dac->tv_std == TV_STD_NTSC || -- 2.20.1