Re: [PATCH net-next v1 1/1] treewide: Rename ERR_PTR_PCPU() --> PCPU_ERR_PTR()
From: Andy Shevchenko
Date: Mon Nov 03 2025 - 02:35:00 EST
On Fri, Oct 31, 2025 at 04:49:58PM -0700, Jakub Kicinski wrote:
> On Thu, 30 Oct 2025 09:35:53 +0100 Andy Shevchenko wrote:
> > Make the namespace of specific ERR_PTR() macro leading the thing.
> > This is already done for IOMEM_ERR_PTR(). Follow the same pattern
> > in PCPU_ERR_PTR().
>
> TBH I find the current naming to be typical. _PCPU() is the "flavor" of
> the API. Same as we usually append _rcu() to functions which expect
> to operate under RCU. All error pointer helpers end with _PCPU().
Ah, there is also IS_ERR_PCPU()...
> I don't feel strongly so fine if anyone else wants to apply this.
> But I will not :)
OK.
--
With Best Regards,
Andy Shevchenko