Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1930964ybv; Fri, 14 Feb 2020 08:25:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxCcXQIYnWaVtR/Aa1KgH7Vi7+n+DBsjqFENb7FSKnNzj4wEAc4TRlrkIjWrq8yz+woFJYs X-Received: by 2002:a9d:74c4:: with SMTP id a4mr3013059otl.119.1581697532499; Fri, 14 Feb 2020 08:25:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697532; cv=none; d=google.com; s=arc-20160816; b=V019mcAxLdg4EER18aLZDIe+c+DrkFRMyfkftjSwnmGs4ihXV9XZvuXLwH+5cwavI3 M5txIKq+zMQS17zhcMVSFGmdG7ecE6At3D7M5syDx69s3OXw1D6ma5j/1fcsjuhLRelT iusK4z4Klff24haOCyDU1gMniifiweM0BrSV0wKtagJ/L5BUdmRScMv4imUatd+fpP1c oqyM+jwFIWZoPHHgDt+VimRahO3g4c1tp1gn8EmJxaOYXGByZNc+Y9VtOD5WOo9vECA2 mqIB1auJLUfd/MTdEh8RKoW1FjTecl4EyF1aJHLfj0eSkx9Sd4/TItEB8ZIMRvGx+w0I eM3Q== 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=1TMm8wKHmLn0ckGMmL4ivV27XVnds+P7iotoZ//85PA=; b=qbh/VmvYTS8CAW9pLSr1QijTIIeNeQrB1dBPcEIaFcxp9G1NitgXhb6+Tdju5bdGqy uTUsgTJxCyA3yPuyZQYW1czTmY4EPxb6wSS/KxvOWQh5LBTin+dZm7I/ewkqVf0LWQ0Y JsT3/YzfcRKDduZjjGLKq9KApjuZZ3ftJoJO0hDfXsfTccw1YVOxdpH7uUytcQu/LRZ9 1JPCy3q9jxW5YbjKj1Cm0nN8ivCTNLE51m2fix/DzzMySy4NpNSZBX0XuFamSKhrBog4 4tsdP7kE7+K1AXv3tlkuFcYUCXjfUxWLTie2tnHZMLAln4KWQ3r7iK4pHMlaeCXnB3HC ne+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="bYv/fjGh"; 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 a22si3094501oia.15.2020.02.14.08.25.21; Fri, 14 Feb 2020 08:25:32 -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="bYv/fjGh"; 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 S2405787AbgBNQYC (ORCPT + 99 others); Fri, 14 Feb 2020 11:24:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:57752 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393192AbgBNQWV (ORCPT ); Fri, 14 Feb 2020 11:22:21 -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 24D7724748; Fri, 14 Feb 2020 16:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697341; bh=fFAY4u15hVnQZTtLDHb/0vJN8XTyQ+k5F3zCX4jEDm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bYv/fjGh7bmm/4V+4DpN9qhL8fD8cy0iJ2EwAzSdP9hPFBkLYNFBPCmN48UtJT4fS /c2g7CQyzT6M1lDuPdY72W3JylrkVXWqYZAfpeAW+WFdpOiPcB8S9cel+xExGi0Ezw GaaA52ZEewSh4avamOGbymT7hv3awwLqJ9u4MssA= 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 046/141] drm/radeon: remove set but not used variable 'blocks' Date: Fri, 14 Feb 2020 11:19:46 -0500 Message-Id: <20200214162122.19794-46-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 77441f77949807fda4a0aec0bdf3e86ae863fd56 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_combios.c: In function radeon_combios_get_power_modes: drivers/gpu/drm/radeon/radeon_combios.c:2638:10: warning: variable blocks set but not used [-Wunused-but-set-variable] It is introduced by commit 56278a8edace ("drm/radeon/kms: pull power mode info from bios tables (v3)"), 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_combios.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 3178ba0c537c1..a01e52445ad11 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c @@ -2635,7 +2635,7 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) { struct drm_device *dev = rdev->ddev; u16 offset, misc, misc2 = 0; - u8 rev, blocks, tmp; + u8 rev, tmp; int state_index = 0; struct radeon_i2c_bus_rec i2c_bus; @@ -2725,7 +2725,6 @@ void radeon_combios_get_power_modes(struct radeon_device *rdev) offset = combios_get_table_offset(dev, COMBIOS_POWERPLAY_INFO_TABLE); if (offset) { rev = RBIOS8(offset); - blocks = RBIOS8(offset + 0x2); /* power mode 0 tends to be the only valid one */ rdev->pm.power_state[state_index].num_clock_modes = 1; rdev->pm.power_state[state_index].clock_info[0].mclk = RBIOS32(offset + 0x5 + 0x2); -- 2.20.1