From patchwork Sun Sep 14 09:48:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 389033 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9B71314016A for ; Sun, 14 Sep 2014 20:01:04 +1000 (EST) Received: from ozlabs.org (ozlabs.org [103.22.144.67]) by lists.ozlabs.org (Postfix) with ESMTP id 737901A0AEB for ; Sun, 14 Sep 2014 20:01:04 +1000 (EST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org X-Greylist: delayed 700 seconds by postgrey-1.34 at bilbo; Sun, 14 Sep 2014 20:00:30 AEST Received: from wilson.telenet-ops.be (wilson.telenet-ops.be [195.130.132.42]) by lists.ozlabs.org (Postfix) with ESMTP id BD88F1A0076 for ; Sun, 14 Sep 2014 20:00:30 +1000 (EST) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [195.130.132.51]) by wilson.telenet-ops.be (Postfix) with ESMTP id 127BE34B3E for ; Sun, 14 Sep 2014 11:48:31 +0200 (CEST) Received: from ayla.of.borg ([84.193.84.167]) by baptiste.telenet-ops.be with bizsmtp id qxoV1o00a3cczKo01xoVGs; Sun, 14 Sep 2014 11:48:30 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.76) (envelope-from ) id 1XT6Q1-000432-Je; Sun, 14 Sep 2014 11:48:29 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1XT6Q8-0002sh-1P; Sun, 14 Sep 2014 11:48:36 +0200 From: Geert Uytterhoeven To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Subject: [PATCH] video: valkyriefb: Fix unused variable warning in set_valkyrie_clock() Date: Sun, 14 Sep 2014 11:48:30 +0200 Message-Id: <1410688110-11042-1-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Cc: Geert Uytterhoeven , linux-fbdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-m68k@vger.kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" If CONFIG_ADB_CUDA=n: drivers/video/fbdev/valkyriefb.c: In function ‘set_valkyrie_clock’: drivers/video/fbdev/valkyriefb.c:267: warning: unused variable ‘i’ drivers/video/fbdev/valkyriefb.c:266: warning: unused variable ‘req’ Move the variable declarations inside the existing #ifdef section to fix this. Signed-off-by: Geert Uytterhoeven --- drivers/video/fbdev/valkyriefb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/valkyriefb.c b/drivers/video/fbdev/valkyriefb.c index 97cb9bd1d1dd..b6ed09f16355 100644 --- a/drivers/video/fbdev/valkyriefb.c +++ b/drivers/video/fbdev/valkyriefb.c @@ -263,10 +263,10 @@ static inline int valkyrie_vram_reqd(int video_mode, int color_mode) static void set_valkyrie_clock(unsigned char *params) { +#ifdef CONFIG_ADB_CUDA struct adb_request req; int i; -#ifdef CONFIG_ADB_CUDA for (i = 0; i < 3; ++i) { cuda_request(&req, NULL, 5, CUDA_PACKET, CUDA_GET_SET_IIC, 0x50, i + 1, params[i]);