Re: [PATCH v2 2/4] mm/hwpoison: move definitions of num_poisoned_pages_* to memory-failure.c

From: HORIGUCHI NAOYA(堀口 直也)
Date: Mon Sep 05 2022 - 02:35:45 EST


On Mon, Sep 05, 2022 at 03:21:35PM +0900, Naoya Horiguchi wrote:
> From: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>
>
> These interfaces will be used by drivers/base/core.c by later patch, so as a
> preparatory work move them to more common header file visible to the file.
>
> Signed-off-by: Naoya Horiguchi <naoya.horiguchi@xxxxxxx>
> ---
...
> diff --git a/include/linux/mm.h b/include/linux/mm.h
> index 21f8b27bd9fd..b81dd600e51a 100644
> --- a/include/linux/mm.h
> +++ b/include/linux/mm.h
> @@ -3202,6 +3202,10 @@ static inline int __get_huge_page_for_hwpoison(unsigned long pfn, int flags)
> {
> return 0;
> }
> +
> +static inline void num_poisoned_pages_inc()

Sorry, checkpatch.pl fails on this declaration, I should've give "void"
in the argument.

+static inline void num_poisoned_pages_inc(void)

- Naoya Horiguchi

> +{
> +}
> #endif