[-mmotm] mm/memory-failure: remove stub function
diff mbox series

Message ID adb60490-484f-a154-e163-725e35a821dc@infradead.org
State New
Headers show
Series
  • [-mmotm] mm/memory-failure: remove stub function
Related show

Commit Message

Randy Dunlap July 1, 2020, 3:47 p.m. UTC
From: Randy Dunlap <rdunlap@infradead.org>

This stub is no longer needed since the function is no longer
inside an #ifdef/#endif block.

Fixes this build error:

../mm/memory-failure.c:180:13: error: redefinition of ‘page_handle_poison’

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Oscar Salvador <osalvador@suse.de>
---
 mm/memory-failure.c |    4 ----
 1 file changed, 4 deletions(-)

Comments

Stephen Rothwell July 1, 2020, 10:38 p.m. UTC | #1
Hi Randy,

On Wed, 1 Jul 2020 08:47:30 -0700 Randy Dunlap <rdunlap@infradead.org> wrote:
>
> From: Randy Dunlap <rdunlap@infradead.org>
> 
> This stub is no longer needed since the function is no longer
> inside an #ifdef/#endif block.
> 
> Fixes this build error:
> 
> ../mm/memory-failure.c:180:13: error: redefinition of ‘page_handle_poison’
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Oscar Salvador <osalvador@suse.de>
> ---
>  mm/memory-failure.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> --- mmotm-2020-0630-2152.orig/mm/memory-failure.c
> +++ mmotm-2020-0630-2152/mm/memory-failure.c
> @@ -169,10 +169,6 @@ int hwpoison_filter(struct page *p)
>  	return 0;
>  }
>  
> -static bool page_handle_poison(struct page *page, bool hugepage_or_freepage, bool release)
> -{
> -	return true;
> -}
>  #endif
>  
>  EXPORT_SYMBOL_GPL(hwpoison_filter);

Added to linux-next today.

Patch
diff mbox series

--- mmotm-2020-0630-2152.orig/mm/memory-failure.c
+++ mmotm-2020-0630-2152/mm/memory-failure.c
@@ -169,10 +169,6 @@  int hwpoison_filter(struct page *p)
 	return 0;
 }
 
-static bool page_handle_poison(struct page *page, bool hugepage_or_freepage, bool release)
-{
-	return true;
-}
 #endif
 
 EXPORT_SYMBOL_GPL(hwpoison_filter);