Re: [PATCH] mm/page: Drop has_unaccepted_memory() helper

From: Kirill A. Shutemov
Date: Mon Sep 09 2024 - 18:01:09 EST


On Mon, Sep 09, 2024 at 12:25:58PM -0700, Andrew Morton wrote:
> On Mon, 9 Sep 2024 11:19:30 +0300 "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> wrote:
>
> > has_unaccepted_memory() has the only caller -- cond_accept_memory().
> >
> > Remove the helper and check zones_with_unaccepted_pages directly in
> > cond_accept_memory().
> >
> > It also fixes warning with clang 18 when kernel is compiled without
> > unaccepted memory support:
> >
> > mm/page_alloc.c:7043:20: error: unused function 'has_unaccepted_memory' [-Werror,-Wunused-function]
> >
>
> Thanks, mm-unstable has a similar fix:

Works for me.

--
Kiryl Shutsemau / Kirill A. Shutemov