Skip to contentSkip to conversation

linux-next: build warning after merge of the gpio tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 6, 2018

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

Hi Linus,

After merging the gpio tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/gpio/gpiolib.c:1514:12: warning: 'devm_gpio_chip_match' defined but not used [-Wunused-function]
static int devm_gpio_chip_match(struct device *dev, void *res, void *data)

            ^~~~~~~~~~~~~~~~~~~~

Caused by commit

48207d7595d2 ("gpio: drop devm_gpiochip_remove()")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Linus,

Quoted 10 lines · Stephen Rothwell

After merging the gpio tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

drivers/gpio/gpiolib.c:1514:12: warning: 'devm_gpio_chip_match' defined but not used [-Wunused-function]
static int devm_gpio_chip_match(struct device *dev, void *res, void *data)

            ^~~~~~~~~~~~~~~~~~~~

Caused by commit

48207d7595d2 ("gpio: drop devm_gpiochip_remove()")

I noticed this, too, but didn't tell immediately because I thought I'd have to resent this patch and then forgot as you applied yourself.

Sorry for that, the obvious resolution is to drop devm_gpio_chip_match(). Feel free to squash that into 48207d7595d2. If your branch is already stable I can provide a patch for that.

Thanks
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |