linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: armada-37xx: remove unused variable
@ 2017-11-02 14:29 Arnd Bergmann
  2017-11-03  7:46 ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2017-11-02 14:29 UTC (permalink / raw)
  To: Jason Cooper, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Linus Walleij
  Cc: Arnd Bergmann, Ken Ma, Thierry Reding, linux-arm-kernel,
	linux-gpio, linux-kernel

A cleanup left behind a temporary variable that is now unused:

drivers/pinctrl/mvebu/pinctrl-armada-37xx.c: In function 'armada_37xx_irq_startup':
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c:693:20: error: unused variable 'chip' [-Werror=unused-variable]

This removes the declarations as well.

Fixes: 3ee9e605caea ("pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
index 68a4af12fb0a..2149f8d955cf 100644
--- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
+++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
@@ -690,8 +690,6 @@ static void armada_37xx_irq_handler(struct irq_desc *desc)
 
 static unsigned int armada_37xx_irq_startup(struct irq_data *d)
 {
-	struct gpio_chip *chip = irq_data_get_irq_chip_data(d);
-
 	/*
 	 * The mask field is a "precomputed bitmask for accessing the
 	 * chip registers" which was introduced for the generic
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: armada-37xx: remove unused variable
  2017-11-02 14:29 [PATCH] pinctrl: armada-37xx: remove unused variable Arnd Bergmann
@ 2017-11-03  7:46 ` Linus Walleij
  2017-11-03  9:11   ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Walleij @ 2017-11-03  7:46 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Jason Cooper, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Ken Ma, Thierry Reding, linux-arm-kernel,
	linux-gpio, linux-kernel

On Thu, Nov 2, 2017 at 3:29 PM, Arnd Bergmann <arnd@arndb.de> wrote:

> A cleanup left behind a temporary variable that is now unused:
>
> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c: In function 'armada_37xx_irq_startup':
> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c:693:20: error: unused variable 'chip' [-Werror=unused-variable]
>
> This removes the declarations as well.
>
> Fixes: 3ee9e605caea ("pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

It is used on the head of development, so it's fixed in -next.

Is it such a big issue for v4.14 that you think I should send it
to Torvalds as a fix at this point or can I just leave it?

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: armada-37xx: remove unused variable
  2017-11-03  7:46 ` Linus Walleij
@ 2017-11-03  9:11   ` Arnd Bergmann
  2017-11-03 22:21     ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2017-11-03  9:11 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Jason Cooper, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Ken Ma, Thierry Reding, linux-arm-kernel,
	linux-gpio, linux-kernel

On Fri, Nov 3, 2017 at 8:46 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Thu, Nov 2, 2017 at 3:29 PM, Arnd Bergmann <arnd@arndb.de> wrote:
>
>> A cleanup left behind a temporary variable that is now unused:
>>
>> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c: In function 'armada_37xx_irq_startup':
>> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c:693:20: error: unused variable 'chip' [-Werror=unused-variable]
>>
>> This removes the declarations as well.
>>
>> Fixes: 3ee9e605caea ("pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base")
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> It is used on the head of development, so it's fixed in -next.
>
> Is it such a big issue for v4.14 that you think I should send it
> to Torvalds as a fix at this point or can I just leave it?

I'm confused. The build warning showed up in linux-next yesterday after
3ee9e605caea got merged, which removes the user of that variable.
In v4.14 it is still used.

         Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] pinctrl: armada-37xx: remove unused variable
  2017-11-03  9:11   ` Arnd Bergmann
@ 2017-11-03 22:21     ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2017-11-03 22:21 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Jason Cooper, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Ken Ma, Thierry Reding, linux-arm-kernel,
	linux-gpio, linux-kernel

On Fri, Nov 3, 2017 at 10:11 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Fri, Nov 3, 2017 at 8:46 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
>> On Thu, Nov 2, 2017 at 3:29 PM, Arnd Bergmann <arnd@arndb.de> wrote:
>>
>>> A cleanup left behind a temporary variable that is now unused:
>>>
>>> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c: In function 'armada_37xx_irq_startup':
>>> drivers/pinctrl/mvebu/pinctrl-armada-37xx.c:693:20: error: unused variable 'chip' [-Werror=unused-variable]
>>>
>>> This removes the declarations as well.
>>>
>>> Fixes: 3ee9e605caea ("pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base")
>>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>>
>> It is used on the head of development, so it's fixed in -next.
>>
>> Is it such a big issue for v4.14 that you think I should send it
>> to Torvalds as a fix at this point or can I just leave it?
>
> I'm confused. The build warning showed up in linux-next yesterday after
> 3ee9e605caea got merged, which removes the user of that variable.
> In v4.14 it is still used.

I just confused myself by trying to apply it to the pin control
tree while the refactorings were in the GPIO tree.

Applied it to the right tree now, thanks!

Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-03 22:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-02 14:29 [PATCH] pinctrl: armada-37xx: remove unused variable Arnd Bergmann
2017-11-03  7:46 ` Linus Walleij
2017-11-03  9:11   ` Arnd Bergmann
2017-11-03 22:21     ` 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).