Messages in this thread | | | Subject | Re: [PATCH] devres: allow const resource arguments | From | "Enrico Weigelt, metux IT consult" <> | Date | Tue, 2 Jul 2019 22:26:14 +0200 |
| |
On 28.06.19 16:59, Arnd Bergmann wrote: > devm_ioremap_resource() does not currently take 'const' arguments, > which results in a warning from the first driver trying to do it > anyway: > > drivers/gpio/gpio-amd-fch.c: In function 'amd_fch_gpio_probe': > drivers/gpio/gpio-amd-fch.c:171:49: error: passing argument 2 of 'devm_ioremap_resource' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] > priv->base = devm_ioremap_resource(&pdev->dev, &amd_fch_gpio_iores); > ^~~~~~~~~~~~~~~~~~~
<snip>
I've posted quite the same some time ago - no idea why it got no response.
Reviwed-By: Enrico Weigelt <info@metux.net>
--mtx
-- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287
| |