Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 1 participant 1 message Feb 25, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Linus,

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

drivers/gpio/gpio-amd-fch.c: In function 'amd_fch_gpio_probe':
drivers/gpio/gpio-amd-fch.c:164:49: warning: passing argument 2 of 'devm_ioremap_resource' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

  priv->base = devm_ioremap_resource(&pdev->dev, &amd_fch_gpio_iores);
                                                 ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/platform_device.h:14,
                 from drivers/gpio/gpio-amd-fch.c:15:
include/linux/device.h:709:15: note: expected 'struct resource *' but argument is of type 'const struct resource *'
 void __iomem *devm_ioremap_resource(struct device *dev, struct resource *res);
               ^~~~~~~~~~~~~~~~~~~~~

Introduced by commit

e09d168f13f0 ("gpio: AMD G-Series PCH gpio driver")

Signature · 2 lines
Cheers,
Stephen Rothwell