Skip to contentSkip to conversation

pinctrl: armada-37xx: remove unused variable

PATCH Applied Arnd Bergmann 2 participants 4 messages Nov 2, 2017 – Nov 3, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: armada-37xx: remove unused variable

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")
---
 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +0 -2
index 68a4af12fb0a..2149f8d955cf 100644
@@ -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
Signature · 1 line
2.9.0
#1 lore raw
Quoted 9 lines · Arnd Bergmann

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")

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

#2 lore raw
Quoted 9 lines · Linus Walleij
Quoted 7 lines · Arnd Bergmann

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.

Quoted 7 lines
Quoted 2 lines
Fixes 3ee9e605caea ("pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base")

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

#3 lore raw
Quoted 13 lines · Arnd Bergmann
Quoted 12 lines · Linus Walleij
Quoted 9 lines · Arnd Bergmann

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")
Quoted 8 lines
Quoted 4 lines

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