Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478668
| From | Guenter Roeck <linux@roeck-us.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver |
| Date | 2016-09-08 00:40 +0200 |
| Message-ID | <seTFF-609-81@gated-at.bofh.it> (permalink) |
| References | <rXtex-4cZ-9@gated-at.bofh.it> <rXtex-4cZ-7@gated-at.bofh.it> <seSTg-5pg-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Sep 07, 2016 at 11:41:44PM +0200, Arnd Bergmann wrote:
> On Thursday, July 21, 2016 1:55:56 PM CEST Hoan Tran wrote:
> > + ctx->comm_base_addr = cppc_ss->base_address;
> > + if (ctx->comm_base_addr) {
> > + ctx->pcc_comm_addr =
> > + acpi_os_ioremap(ctx->comm_base_addr,
> > + cppc_ss->length);
> >
>
> This causes the arm64 allmodconfig build to fail now, according to
> kernelci:
>
> 1 ERROR: "memblock_is_memory" [drivers/hwmon/xgene-hwmon.ko] undefined!
>
> Should this perhaps call ioremap() or memremap() instead?
>
Hmmm ... almost sounds to me like blaming the messenger. e7cd190385d1 ("arm64:
mark reserved memblock regions explicitly in iomem") starts using a function
in acpi_os_ioremap() which is not exported. On top of that, memblock_is_memory()
is declared as __init_memblock, which makes me really uncomfortable.
If acpi_os_ioremap() must not be used by modules, and possibly only during
early (?) initialization, maybe its declaration should state those limitations ?
Thanks,
Guenter
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Arnd Bergmann <arnd@arndb.de> - 2016-09-07 23:50 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Guenter Roeck <linux@roeck-us.net> - 2016-09-08 00:30 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Arnd Bergmann <arnd@arndb.de> - 2016-09-08 10:20 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Guenter Roeck <linux@roeck-us.net> - 2016-09-08 17:00 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Arnd Bergmann <arnd@arndb.de> - 2016-09-08 17:10 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Guenter Roeck <linux@roeck-us.net> - 2016-09-08 00:40 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver Arnd Bergmann <arnd@arndb.de> - 2016-09-08 10:20 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver James Morse <james.morse@arm.com> - 2016-09-08 12:50 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver AKASHI Takahiro <takahiro.akashi@linaro.org> - 2016-09-09 05:20 +0200
Re: [PATCH v3 2/3] hwmon: xgene: Add hwmon driver James Morse <james.morse@arm.com> - 2016-09-09 11:40 +0200
csiph-web