From patchwork Wed Feb 13 05:05:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 2134391 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D69D83FCA4 for ; Wed, 13 Feb 2013 05:07:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750868Ab3BMFHA (ORCPT ); Wed, 13 Feb 2013 00:07:00 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:59730 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828Ab3BMFG7 (ORCPT ); Wed, 13 Feb 2013 00:06:59 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MI500B1J7IOI7M0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 13 Feb 2013 14:06:58 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1B.69.03880.27F1B115; Wed, 13 Feb 2013 14:06:58 +0900 (KST) X-AuditID: cbfee61b-b7fb06d000000f28-3a-511b1f720748 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id DA.69.03880.27F1B115; Wed, 13 Feb 2013 14:06:58 +0900 (KST) Received: from localhost.localdomain ([105.128.18.183]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MI5006XP7JHY040@mmp2.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 13 Feb 2013 14:06:58 +0900 (KST) From: Kukjin Kim To: linux-samsung-soc@vger.kernel.org Cc: Kukjin Kim , Heiko Stuebner Subject: [PATCH] gpio: samsung: fixes build warning with s3c2410_defconfig Date: Tue, 12 Feb 2013 21:05:36 -0800 Message-id: <1360731937-23471-1-git-send-email-kgene.kim@samsung.com> X-Mailer: git-send-email 1.7.10.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsVy+t8zY90ieelAg7m35C1mnN/H5MDo8XmT XABjFJdNSmpOZllqkb5dAldG28P1bAUzOStePlzL1sB4nb2LkZNDQsBE4tSGz2wQtpjEhXvr gWwuDiGBZYwSM2ZcYoEpevW2nR0iMZ1R4uTjTqiqtUwSz9ctABvFJqAhcfj9MzBbREBV4nMb RJxZwENi6qt1rCC2sICXxNtNfUwgNgtQzdodrWAbeAVcJR6se8wEsU1RovvZBLAFEgIb2CSO TdwM1SAg8W3yIaAGDqCErMSmA8wQ9ZISB1fcYJnAKLiAkWEVo2hqQXJBcVJ6rpFecWJucWle ul5yfu4mRkhQSe9gXNVgcYhRgINRiYfXIUQqUIg1say4MvcQowQHs5II7wQO6UAh3pTEyqrU ovz4otKc1OJDjMlAyycyS4km5wMDPq8k3tDY2MTMxNTE3NLU3JQ0YSVxXsZTTwKEBNITS1Kz U1MLUotgtjBxcEo1MG5+PuPq01k3fmz6teb63aeae9bsz40tXLIi7fOKJznztu3RzOv2YjU2 P6Hmx3AvQjWnu7i2jC+4tu+H+a2lqxWPLb6e+MXk4TXd1rS1J+1FlnaFS0wukVw1qWWtfeBs 4VsZ6+Ycqb4iev9+npNj++Rqvgmbr2sWRPffDt95602S1zlGpTv7guuUWIozEg21mIuKEwFN t0CUbgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupikeLIzCtJLcpLzFFi42I5/e+xoG6RvHSgwYuX0hYzzu9jcmD0+LxJ LoAxqoHRJiM1MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdo qpJCWWJOKVAoILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsI4xo+3heraCmZwVLx+uZWtg vM7excjJISFgIvHqbTuULSZx4d56ti5GLg4hgemMEicfd0I5a5kknq9bAFbFJqAhcfj9MzBb REBV4nMbRJxZwENi6qt1rCC2sICXxNtNfUwgNgtQzdodrSwgNq+Aq8SDdY+ZILYpSnQ/m8A2 gZF7ASPDKkbR1ILkguKk9FwjveLE3OLSvHS95PzcTYzgkH0mvYNxVYPFIUYBDkYlHl6HEKlA IdbEsuLK3EOMEhzMSiK8EzikA4V4UxIrq1KL8uOLSnNSiw8xJgNtn8gsJZqcD4ynvJJ4Q2MT MyNLIzMLIxNzc9KElcR5GU89CRASSE8sSc1OTS1ILYLZwsTBKdXAKGLskL1hxz7NT9t7Zmdy 5MSoW+9d6G3btfziiXnLzJvzGUJ1trEeeXthhZT6keWrV7132/Qo32p67hFj7XNiG9pl1Riv Jjn9+LzeQ9WATS/3tl+h5v6Pf9aZRJ2Zs0qdi+PM+oORdRP44hquaDxh4ck/fOt8pdDGB7l9 Vz485PeMPXXEv+qMkBJLcUaioRZzUXEiAL8qpW2dAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org commit 7b45ed96 ("ARM: S3C24XX: handle s3c2412 eints using new infrastructure") introduced build warning and this patch fixes that: drivers/gpio/gpio-samsung.c: In function 's3c24xx_gpiolib_fbank_to_irq': drivers/gpio/gpio-samsung.c:1126:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] Reported-by: kbuild test robot Cc: Heiko Stuebner Signed-off-by: Kukjin Kim Acked-by: Heiko Stuebner --- drivers/gpio/gpio-samsung.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-samsung.c b/drivers/gpio/gpio-samsung.c index df096dc..a811d0f 100644 --- a/drivers/gpio/gpio-samsung.c +++ b/drivers/gpio/gpio-samsung.c @@ -1123,11 +1123,12 @@ int samsung_gpiolib_to_irq(struct gpio_chip *chip, unsigned int offset) #ifdef CONFIG_PLAT_S3C24XX static int s3c24xx_gpiolib_fbank_to_irq(struct gpio_chip *chip, unsigned offset) { - if (offset < 4) + if (offset < 4) { if (soc_is_s3c2412()) return IRQ_EINT0_2412 + offset; else return IRQ_EINT0 + offset; + } if (offset < 8) return IRQ_EINT4 + offset - 4;