aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Croce <[email protected]>2021-07-14 21:26:43 -0700
committerLinus Torvalds <[email protected]>2021-07-15 10:13:49 -0700
commit54aa386661fef92b5f092d7068bc6d4952b91a71 (patch)
tree7890285f8ce721102940b0da2c9a7265be7ce07f
parent2db710cc846d3321a4dc0977fa13769bddba2351 (diff)
Revert "mm/page_alloc: make should_fail_alloc_page() static"
This reverts commit f7173090033c70886d925995e9dfdfb76dbb2441. Fix an unresolved symbol error when CONFIG_DEBUG_INFO_BTF=y: LD vmlinux BTFIDS vmlinux FAILED unresolved symbol should_fail_alloc_page make: *** [Makefile:1199: vmlinux] Error 255 make: *** Deleting file 'vmlinux' Link: https://lkml.kernel.org/r/[email protected] Fixes: f7173090033c ("mm/page_alloc: make should_fail_alloc_page() static") Signed-off-by: Matteo Croce <[email protected]> Acked-by: Mel Gorman <[email protected]> Tested-by: John Hubbard <[email protected]> Cc: Michal Hocko <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Dan Streetman <[email protected]> Cc: Yang Shi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 3b97e17806be..bf3117bb1e16 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3820,7 +3820,7 @@ static inline bool __should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
#endif /* CONFIG_FAIL_PAGE_ALLOC */
-static noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
+noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
{
return __should_fail_alloc_page(gfp_mask, order);
}