[Devel] [PATCH 3/5] ve/binfmt_misc: fix compilation outside CONFIG_BINFMT_MISC

Dmitry Safonov dsafonov at odin.com
Mon Jan 18 02:27:51 PST 2016


Fix for the next compile error:
kernel/ve/ve.c: In function ‘ve_destroy’:
kernel/ve/ve.c:709:10: error: ‘struct ve_struct’ has no member named ‘binfmt_misc’
  kfree(ve->binfmt_misc);

Signed-off-by: Dmitry Safonov <dsafonov at odin.com>
---
 kernel/ve/ve.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 1f8e5da..400cc7c 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -706,7 +706,9 @@ static void ve_destroy(struct cgroup *cg)
 	free_ve_devmnts(ve);
 
 	ve_log_destroy(ve);
+#if IS_ENABLED(CONFIG_BINFMT_MISC)
 	kfree(ve->binfmt_misc);
+#endif
 	free_percpu(ve->sched_lat_ve.cur);
 	kfree(ve->ve_name);
 	kmem_cache_free(ve_cachep, ve);
-- 
2.7.0



More information about the Devel mailing list