From patchwork Sat Nov 9 17:59:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 3164081 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 79A2EC045B for ; Sat, 9 Nov 2013 17:59:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9797B2038E for ; Sat, 9 Nov 2013 17:59:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B078C2038C for ; Sat, 9 Nov 2013 17:59:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 71780FB68D; Sat, 9 Nov 2013 09:59:18 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qa0-f53.google.com (mail-qa0-f53.google.com [209.85.216.53]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F736FB68C for ; Sat, 9 Nov 2013 09:59:15 -0800 (PST) Received: by mail-qa0-f53.google.com with SMTP id k4so627060qaq.12 for ; Sat, 09 Nov 2013 09:59:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XcbjqVpHM2BjD2Baj8V/NZC3ZGrxNrl1iA5uHptLpAU=; b=qhAVHU6pwn4LQi6VQKZ4X81ts34QRAjFu4zmuW37s9+Uaqds0HYHuKDCJq3uHaI0Hg uMtPGML33fUPiDAodC0L5m1baV2S9imbYArZQ90MbqIAG2oVJMaNixQomwUPzmgJbLke VuNjjD7Un7aDZPVzRVUTbD/LSV3ZvtGcH7279OnHy25IL5R/qnc4ihnxMCCLACoGlaIp kJ7VN6DdzkECuMEw4nVRfHgtyGGvY47ojgaFu9xqkm2Pp8Uy2JJWZgD1bZ7gBeMStGH5 mpf51toh2YU9PqW0H6WDzHrinTVGMSJGIna0N9eqbaKJDScRQ8fMYzAoIZFsdw79z6T9 JnLw== X-Received: by 10.224.29.208 with SMTP id r16mr34526613qac.25.1384019955529; Sat, 09 Nov 2013 09:59:15 -0800 (PST) Received: from localhost.localdomain ([186.207.93.139]) by mx.google.com with ESMTPSA id e10sm24969972yhj.1.2013.11.09.09.59.14 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Nov 2013 09:59:15 -0800 (PST) From: Fabio Estevam To: alexander.deucher@amd.com Subject: [PATCH 2/2] drm: radeon: cypress_dpm: Fix unused variable warning when CONFIG_ACPI=n Date: Sat, 9 Nov 2013 15:59:03 -0200 Message-Id: <1384019943-25401-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1384019943-25401-1-git-send-email-festevam@gmail.com> References: <1384019943-25401-1-git-send-email-festevam@gmail.com> Cc: Fabio Estevam , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam With CONFIG_ACPI=n the following build warning is seen: drivers/gpu/drm/radeon/cypress_dpm.c:302:31: warning: unused variable 'eg_pi' [-Wunused-variable] Move the definition of eg_pi inside the CONFIG_ACPI 'if' block. Signed-off-by: Fabio Estevam --- drivers/gpu/drm/radeon/cypress_dpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/cypress_dpm.c b/drivers/gpu/drm/radeon/cypress_dpm.c index 91bb470..a231c59 100644 --- a/drivers/gpu/drm/radeon/cypress_dpm.c +++ b/drivers/gpu/drm/radeon/cypress_dpm.c @@ -299,7 +299,6 @@ void cypress_program_response_times(struct radeon_device *rdev) static int cypress_pcie_performance_request(struct radeon_device *rdev, u8 perf_req, bool advertise) { - struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); u32 tmp; udelay(10); @@ -308,6 +307,7 @@ static int cypress_pcie_performance_request(struct radeon_device *rdev, return 0; #if defined(CONFIG_ACPI) + struct evergreen_power_info *eg_pi = evergreen_get_pi(rdev); if ((perf_req == PCIE_PERF_REQ_PECI_GEN1) || (perf_req == PCIE_PERF_REQ_PECI_GEN2)) { eg_pi->pcie_performance_request_registered = true;