* [PATCH] pinctrl: sirf: fix typo for GPIO bank number
@ 2014-05-25 8:54 Barry Song
2014-05-27 13:25 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Barry Song @ 2014-05-25 8:54 UTC (permalink / raw)
To: linux-arm-kernel
From: Barry Song <Baohua.Song@csr.com>
The patch 7420d2d09b12: "pinctrl: sirf: switch driver to use gpiolib
irqchip helpers" from Apr 15, 2014, leads to the following static
checker warning:
drivers/pinctrl/sirf/pinctrl-sirf.c:578 sirfsoc_gpio_handle_irq()
warn: buffer overflow 'sgpio_chip.sgpio_bank' 5 <= 31
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
---
drivers/pinctrl/sirf/pinctrl-sirf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c
index c03dcc7..a4ea3f7 100644
--- a/drivers/pinctrl/sirf/pinctrl-sirf.c
+++ b/drivers/pinctrl/sirf/pinctrl-sirf.c
@@ -574,12 +574,12 @@ static void sirfsoc_gpio_handle_irq(unsigned int irq, struct irq_desc *desc)
struct irq_chip *chip = irq_get_chip(irq);
int i;
- for (i = 0; i < SIRFSOC_GPIO_BANK_SIZE; i++) {
+ for (i = 0; i < SIRFSOC_GPIO_NO_OF_BANKS; i++) {
bank = &sgpio_chip.sgpio_bank[i];
if (bank->parent_irq == irq)
break;
}
- BUG_ON (i == SIRFSOC_GPIO_BANK_SIZE);
+ BUG_ON(i == SIRFSOC_GPIO_NO_OF_BANKS);
chained_irq_enter(chip, desc);
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] pinctrl: sirf: fix typo for GPIO bank number
2014-05-25 8:54 [PATCH] pinctrl: sirf: fix typo for GPIO bank number Barry Song
@ 2014-05-27 13:25 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-05-27 13:25 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, May 25, 2014 at 10:54 AM, Barry Song <21cnbao@gmail.com> wrote:
> From: Barry Song <Baohua.Song@csr.com>
>
> The patch 7420d2d09b12: "pinctrl: sirf: switch driver to use gpiolib
> irqchip helpers" from Apr 15, 2014, leads to the following static
> checker warning:
>
> drivers/pinctrl/sirf/pinctrl-sirf.c:578 sirfsoc_gpio_handle_irq()
> warn: buffer overflow 'sgpio_chip.sgpio_bank' 5 <= 31
>
> Cc: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Barry Song <Baohua.Song@csr.com>
Patch applied!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-27 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-25 8:54 [PATCH] pinctrl: sirf: fix typo for GPIO bank number Barry Song
2014-05-27 13:25 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).