Re: [PATCH v6 02/10] mm/memory_hotplug: add mhp_online_type_to_str() and export string helpers

From: Gregory Price

Date: Thu Jul 09 2026 - 17:57:11 EST


On Thu, Jul 09, 2026 at 02:08:43PM -0700, Dave Jiang wrote:
>
> > extern int mhp_online_type_from_str(const char *str);
> > +const char *mhp_online_type_to_str(int online_type);
>
> Does this need to also be 'extern'?
>
> DJ
>

General policy i've understood is: "No new extern"

We use the EXPORT_SYMBOL_* family instead now

~Gregory