From patchwork Wed May 12 15:52:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abraham Arce X-Patchwork-Id: 99049 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4CFs69M024542 for ; Wed, 12 May 2010 15:54:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756716Ab0ELPwf (ORCPT ); Wed, 12 May 2010 11:52:35 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:34963 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756663Ab0ELPwd convert rfc822-to-8bit (ORCPT ); Wed, 12 May 2010 11:52:33 -0400 Received: from dlep34.itg.ti.com ([157.170.170.115]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4CFqWdM020649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 May 2010 10:52:32 -0500 Received: from dlep26.itg.ti.com (localhost [127.0.0.1]) by dlep34.itg.ti.com (8.13.7/8.13.7) with ESMTP id o4CFqVEo022849 for ; Wed, 12 May 2010 10:52:31 -0500 (CDT) Received: from dlee75.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4CFqVEt002429 for ; Wed, 12 May 2010 10:52:31 -0500 (CDT) Received: from dlee03.ent.ti.com ([157.170.170.18]) by dlee75.ent.ti.com ([157.170.170.72]) with mapi; Wed, 12 May 2010 10:52:31 -0500 From: "Arce, Abraham" To: "linux-omap@vger.kernel.org" Date: Wed, 12 May 2010 10:52:30 -0500 Subject: [RFC] [PATCH] OMAP: Remove compilation warnings Thread-Topic: [RFC] [PATCH] OMAP: Remove compilation warnings Thread-Index: Acrx6yDFFIrsABOgT0iYYcfqxM7Lkw== Message-ID: <27F9C60D11D683428E133F85D2BB4A53043E08FAEA@dlee03.ent.ti.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 12 May 2010 15:54:06 +0000 (UTC) diff --git a/arch/arm/mach-omap2/clockdomains.h b/arch/arm/mach-omap2/clockdomains.h index 8fc19ff..cf23547 100644 --- a/arch/arm/mach-omap2/clockdomains.h +++ b/arch/arm/mach-omap2/clockdomains.h @@ -55,7 +55,7 @@ * These can share data since they will never be present simultaneously * on the same device. */ -static struct clkdm_dep gfx_sgx_wkdeps[] = { +static __attribute__ ((unused)) struct clkdm_dep gfx_sgx_wkdeps[] = { { .clkdm_name = "core_l3_clkdm", .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 8b3d269..269449a 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c @@ -49,7 +49,7 @@ struct omap_mux_entry { struct list_head node; }; -static unsigned long mux_phys; +static __attribute__ ((unused)) unsigned long mux_phys; static void __iomem *mux_base; u16 omap_mux_read(u16 reg) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index dddc9d6..fffc7f2 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -2071,7 +2071,7 @@ void omap2_gpio_prepare_for_retention(void) * IRQs will be generated. See OMAP2420 Errata item 1.101. */ for (i = 0; i < gpio_bank_count; i++) { struct gpio_bank *bank = &gpio_bank[i]; - u32 l1, l2; + u32 l1 = 0, l2 = 0; if (!(bank->enabled_non_wakeup_gpios)) continue; @@ -2128,7 +2128,7 @@ void omap2_gpio_resume_after_retention(void) return; for (i = 0; i < gpio_bank_count; i++) { struct gpio_bank *bank = &gpio_bank[i]; - u32 l, gen, gen0, gen1; + u32 l = 0, gen, gen0, gen1; if (!(bank->enabled_non_wakeup_gpios)) continue;