[PATCH 1/5] mm: use inline helper functions instead of ugly macros
Barry Song
21cnbao at gmail.com
Mon Feb 23 23:09:59 PST 2026
On Tue, Feb 24, 2026 at 10:02 AM Baolin Wang
<baolin.wang at linux.alibaba.com> wrote:
>
> People have already complained that these *_clear_young_notify() related
> macros are very ugly, so let's use inline helpers to make them more readable.
>
> In addition, I cannot implement these inline helper functions in the
> mmu_notifier.h file, because some arch-specific files will include the
> mmu_notifier.h, which introduces header compilation dependencies and causes
> build errors (e.g., arch/arm64/include/asm/tlbflush.h). Moreover, since
> these functions are only used in the mm, implementing these inline helpers
> in the mm/internal.h header seems reasonable.
>
> Signed-off-by: Baolin Wang <baolin.wang at linux.alibaba.com>
Reviewed-by: Barry Song <baohua at kernel.org>
Thanks
Barry
More information about the linux-arm-kernel
mailing list