From patchwork Mon Aug 15 10:51:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 1067082 Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7FArjiq009485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 15 Aug 2011 10:54:06 GMT Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p7FAq409021851 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Aug 2011 05:52:04 -0500 Received: from linux.omap.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p7FAq3sf016425; Mon, 15 Aug 2011 05:52:03 -0500 (CDT) Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id AC8A680627; Mon, 15 Aug 2011 05:52:03 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id BD38980626 for ; Mon, 15 Aug 2011 05:52:01 -0500 (CDT) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id p7FAq1mh007766 for ; Mon, 15 Aug 2011 05:52:01 -0500 (CDT) Received: from psmtp.com (na3sys009amx219.postini.com [74.125.149.59]) by white.ext.ti.com (8.13.7/8.13.7) with SMTP id p7FAq0S2017721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 15 Aug 2011 05:52:00 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]) (using TLSv1) by na3sys009amx219.postini.com ([74.125.148.10]) with SMTP; Mon, 15 Aug 2011 10:52:01 GMT Received: by wwj26 with SMTP id 26so1215267wwj.4 for ; Mon, 15 Aug 2011 03:51:58 -0700 (PDT) Received: by 10.227.36.226 with SMTP id u34mr3487687wbd.9.1313405518566; Mon, 15 Aug 2011 03:51:58 -0700 (PDT) Received: from [192.168.2.2] ([91.79.88.120]) by mx.google.com with ESMTPS id fm9sm4455331wbb.44.2011.08.15.03.51.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Aug 2011 03:51:57 -0700 (PDT) Message-ID: <4E48FA23.2020502@ru.mvista.com> Date: Mon, 15 Aug 2011 14:51:15 +0400 From: Sergei Shtylyov User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: davinci-linux-open-source@linux.davincidsp.com Subject: Fwd: [PATCH] [ARM] davinci: gpio: eliminate unused variable warnings References: <1313386893.25484.1.camel@phoenix> In-Reply-To: <1313386893.25484.1.camel@phoenix> X-Forwarded-Message-Id: <1313386893.25484.1.camel@phoenix> X-pstn-neptune: 0/0/0.00/0 X-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 2 (0.5000:0.0750) s cv GT3 gt2 gt1 r p m c X-pstn-addresses: from [35/1] X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: davinci-linux-open-source-bounces@linux.davincidsp.com Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 15 Aug 2011 10:54:07 +0000 (UTC) -------- Original Message -------- Subject: [PATCH] [ARM] davinci: gpio: eliminate unused variable warnings Date: Mon, 15 Aug 2011 13:41:33 +0800 From: Axel Lin To: linux-kernel@vger.kernel.org CC: Kevin Hilman , Russell King , Thomas Gleixner , Sekhar Nori , linux-arm-kernel@lists.infradead.org Since commit 5093aec872e5be7a55d8dd2b639e8a3818dc19db "arm: davinci: Cleanup irq chip code", the variable 'mask' and 'g' are not being used in gpio_irq_type. This patch eliminate below unused variable warnings: CC arch/arm/mach-davinci/gpio.o arch/arm/mach-davinci/gpio.c: In function 'gpio_irq_type': arch/arm/mach-davinci/gpio.c:234: warning: unused variable 'mask' arch/arm/mach-davinci/gpio.c:233: warning: unused variable 'g' Signed-off-by: Axel Lin --- arch/arm/mach-davinci/gpio.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-davinci/gpio.c b/arch/arm/mach-davinci/gpio.c index a8066e8..df0d595 100644 --- a/arch/arm/mach-davinci/gpio.c +++ b/arch/arm/mach-davinci/gpio.c @@ -230,9 +230,6 @@ static void gpio_irq_enable(struct irq_data *d) static int gpio_irq_type(struct irq_data *d, unsigned trigger) { - struct davinci_gpio_regs __iomem *g = irq2regs(d->irq); - u32 mask = (u32) irq_data_get_irq_handler_data(d); - if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) return -EINVAL;