diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 6700cfcfab46d937b3a87c6be0de41f0ffc030dd..2f71d92c45b44606972c7e6303ab6dcbf0bdbf46 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3819,7 +3819,7 @@ static inline bool __should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
 
 #endif /* CONFIG_FAIL_PAGE_ALLOC */
 
-noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
+static noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
 {
 	return __should_fail_alloc_page(gfp_mask, order);
 }