[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5b9dafac-1561-4dfa-a0ff-9445cddc0932@redhat.com>
Date: Mon, 1 Jul 2024 09:16:14 +0200
From: David Hildenbrand <david@...hat.com>
To: Zhao Mengmeng <zhaomengmeng@...inos.cn>, akpm@...ux-foundation.org,
yang@...amperecomputing.com
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1] mm: gup: add forward declaration for
try_grab_folio_fast
On 01.07.24 05:40, Zhao Mengmeng wrote:
> try_grab_folio_fast() was used in gup_hugepte(), while itself was
> defined after gup_hugepte(), so add a forward declaration to eliminate
> the -Wimplicit-function-declaration warning.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202407010039.D3sIu3fu-lkp@intel.com/
> Signed-off-by: Zhao Mengmeng <zhaomengmeng@...inos.cn>
> ---
> mm/gup.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/mm/gup.c b/mm/gup.c
> index 7439359d0b71..222b83a87d7d 100644
> --- a/mm/gup.c
> +++ b/mm/gup.c
> @@ -488,6 +488,9 @@ static unsigned long hugepte_addr_end(unsigned long addr, unsigned long end,
> return (__boundary - 1 < end - 1) ? __boundary : end;
> }
>
> +static struct folio *try_grab_folio_fast(struct page *page, int refs,
> + unsigned int flags);
> +
This function should really be called "gup_fast_", just like all other
gup_fast_ specific functions. I might send some follow-up cleanups later.
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists