Skip to contentSkip to conversation

mm/hugetlb.c: mark alloc_gigantic_page stub inline

PATCH New Arnd Bergmann 1 participant 1 message Nov 9, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hugetlb.c: mark alloc_gigantic_page stub inline

A cleanup patch introduced a new stub helper function but accidentally did not mark that 'inline' as all the other stubs are here, and this causes a warning when it is not used:

mm/hugetlb.c:1166:21: error: 'alloc_gigantic_page' defined but not used [-Werror=unused-function]

Fixes akpm-current ("mm/hugetlb.c: rename some allocation functions")
---
 mm/hugetlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/hugetlb.c +1 -1
index 67faaca8c097..cb9e995affce 100644
@@ -1163,7 +1163,7 @@ static inline void destroy_compound_gigantic_page(struct page *page,
 						unsigned int order) { }
 static inline int alloc_fresh_gigantic_page(struct hstate *h,
 					nodemask_t *nodes_allowed) { return 0; }
-static struct page *alloc_gigantic_page(int nid, unsigned int order)
+static inline struct page *alloc_gigantic_page(int nid, unsigned int order)
 {
 	return NULL;
 }
Signature · 1 line
2.9.0