Re: [PATCH] staging: fbtft: fbtft-bus: replace function-defining macro with concrete functions
From: Andy Shevchenko
Date: Fri Apr 24 2026 - 05:47:24 EST
On Fri, Apr 24, 2026 at 09:40:48AM -0000, Alexandru Hossu wrote:
> On Fri, Apr 24, 2026 at 12:38:45PM +0300, Andy Shevchenko wrote:
> > I'm not sure this patch improves the code. What I see it's harder to follow.
> > NAK.
>
> Fair point. Three near-identical functions hide the pattern the macro
> makes explicit. I'll drop this approach.
>
> If there's appetite for a minimal fix, I can send a v2 that moves
> EXPORT_SYMBOL() outside the macro body only, leaving the function
> definition untouched. Otherwise I'll leave it as-is and wait for
> Greg's take.
You can try that, as I said it would be a compromise because at least I agree
with the awkwardness of having EXPORT_*() be hidden by the macro.
--
With Best Regards,
Andy Shevchenko