From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Khorenko Date: Fri, 21 Aug 2026 18:42:19 +0200 Subject: [Devel] [PATCH RHEL10 COMMIT] mm/memcontrol: add missing inline to the mem_cgroup_fill_meminfo() stub In-Reply-To: <20260821163718.187766-18-khorenko@virtuozzo.com> Message-ID: <202608211642.67LGgJWt667613@f0.sw.ru> List-Id: The commit is pushed to "branch-rh10-6.12.0-211.39.1.16.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git after rh10-6.12.0-211.39.1.16.6.vz10 ------> commit e976003eb47715a1d96e05c4cb66aba9449b7157 Author: Eva Kurchatova Date: Fri Aug 21 18:37:03 2026 +0200 mm/memcontrol: add missing inline to the mem_cgroup_fill_meminfo() stub The !CONFIG_MEMCG stub of mem_cgroup_fill_meminfo() is declared "static void", not "static inline void", so every translation unit that includes memcontrol.h without calling it gets an unused function - an error rather than a warning once CONFIG_WERROR=y, as x86_64 defconfig has it: include/linux/memcontrol.h: error: 'mem_cgroup_fill_meminfo' defined but not used [-Werror=unused-function] Add the missing inline, like every other stub in the same #else block. Fixes: 7710faa9d4f0 ("ve/proc: virtualize /proc/meminfo in a Container") Feature: procfs: virtualize /proc/meminfo https://virtuozzo.atlassian.net/browse/VSTOR-134732 Signed-off-by: Eva Kurchatova Signed-off-by: Konstantin Khorenko --- include/linux/memcontrol.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index d47c3de71a491..2772a7750fa4e 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -1559,7 +1559,8 @@ 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) { }