Skip to contentSkip to conversation

Fix build when CONFIG_INET=n

PATCH In review Dan Smith 2 participants 2 messages Apr 8, 2010 – Apr 24, 2010 1 message not in the archive

lore
Share & tools
lore

Dan Smith

author
#0 lore raw

PATCH 1/1 Fix build when CONFIG_INET=n

---
 checkpoint/sys.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
checkpoint/sys.c +2 -0
index 45d3e7a..7e1ea1f 100644
@@ -259,7 +259,9 @@ static void ckpt_ctx_free(struct ckpt_ctx *ctx)
 
 	kfree(ctx->pids_arr);
 
+#ifdef CONFIG_NETNS_CHECKPOINT
 	sock_listening_list_free(&ctx->listen_sockets);
+#endif
 
 	kfree(ctx);
 }
Signature · 1 line
1.6.2.5
#2 lore raw
In reply to a message not in the archive

Applied for ckpt-v21-rc3.

Quoted 19 lines · Dan Smith
---
 checkpoint/sys.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
checkpoint/sys.c +2 -0
index 45d3e7a..7e1ea1f 100644
@@ -259,7 +259,9 @@ static void ckpt_ctx_free(struct ckpt_ctx *ctx)
 
 	kfree(ctx->pids_arr);
 
+#ifdef CONFIG_NETNS_CHECKPOINT
 	sock_listening_list_free(&ctx->listen_sockets);
+#endif
 
 	kfree(ctx);
 }