The !CONFIG_MEMCG stub for mem_cgroup_fill_meminfo() was declared as
"static void" instead of "static inline void", which triggers
-Wunused-function warnings when the function is not called in every
translation unit that includes the header.

Add the missing inline qualifier to match the convention used by all
other stubs in the same #else block.

Signed-off-by: Eva Kurchatova <[email protected]>

https://virtuozzo.atlassian.net/browse/VSTOR-134732
Feature: fix kunit
---
 include/linux/memcontrol.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 72b6b986a08b..ad6ddf6a5234 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -1554,7 +1554,7 @@ static inline void split_page_memcg(struct page *head, 
int old_order, int new_or
 {
 }
 
-static void mem_cgroup_fill_meminfo(struct mem_cgroup *memcg, struct meminfo 
*mi)
+static inline void mem_cgroup_fill_meminfo(struct mem_cgroup *memcg, struct 
meminfo *mi)
 {
 }
 
-- 
2.54.0

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to