[PATCH 1/5] mm: use inline helper functions instead of ugly macros
Rik van Riel
riel at surriel.com
Mon Feb 23 18:36:30 PST 2026
On Tue, 2026-02-24 at 09:56 +0800, Baolin Wang 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: Rik van Riel <riel at surriel.com>
--
All Rights Reversed.
More information about the linux-arm-kernel
mailing list