Re: [RFC PATCH 06/11] dax/hmem: bind extmem platform devices with per-region alignment

From: Suseendran Bhaskaran

Date: Fri Dec 04 2026 - 10:48:16 EST


Hi Uwe,

Thank you for the review. All three points make sense.

On Thu, Dec 03, 2026 at 09:50:56AM +0100, Uwe Kleine-König wrote:
>> #include <linux/platform_device.h>
>> +#include <linux/mod_devicetable.h>
>
> Please don't add that header. I work on removing it and
> <linux/platform_device.h> already gives you struct platform_device_id.

Will drop it in v1.

>> + struct memregion_info *mri = dev->platform_data;
>
> IMHO this should be const, I think that needs another const for
> alloc_dax_region() so that should probably go to a separate patch.

Agreed. I'll make alloc_dax_region()'s range parameter and mri const in
a separate patch in v1.

>> +static const struct platform_device_id dax_hmem_ids[] = {
>> + { "hmem" },
>> + { "extmem" },
>
> Please use named initializers here (i.e. `{ .name = "hmem" },`)

Will switch both entries to `{ .name = ... }` in v1.

Thanks,
Suseendran