Re: [PATCH v4 4/9] mm/memory_hotplug: add __add_memory_driver_managed() with online_type arg
From: Gregory Price
Date: Tue Jun 09 2026 - 11:21:54 EST
On Tue, Jun 09, 2026 at 11:55:24AM +0200, David Hildenbrand (Arm) wrote:
> On 6/5/26 23:19, Gregory Price wrote:
> >
> > diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h
> > index f059025f8f8b..d3edeb80aadb 100644
> > --- a/include/linux/memory_hotplug.h
> > +++ b/include/linux/memory_hotplug.h
> > @@ -294,6 +294,9 @@ extern int __add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags);
> > extern int add_memory(int nid, u64 start, u64 size, mhp_t mhp_flags);
> > extern int add_memory_resource(int nid, struct resource *resource,
> > mhp_t mhp_flags);
> > +int __add_memory_driver_managed(int nid, u64 start, u64 size,
> > + const char *resource_name, mhp_t mhp_flags,
> > + enum mmop online_type);
>
> We prefer two-tab indent on second parameter line while touching code / adding
> new code.
>
> Same applies to the other instances below.
>
Will fix on next spin, thanks!
>
> Apart from that (still) LGTM.
>
> --
> Cheers,
>
> David