* [PATCH] Fix compile issue with CONFIG_CHECKPOINT=n for inet sockets
@ 2009-10-02 9:35 Matt Helsley
[not found] ` <1254476123-4939-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Matt Helsley @ 2009-10-02 9:35 UTC (permalink / raw)
To: Oren Laadan
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Dan Smith
When I disable CHECKPOINT I get:
net/ipv4/af_inet.c:860: error: ‘inet_checkpoint’ undeclared here (not in a function)
net/ipv4/af_inet.c:861: error: ‘inet_restore’ undeclared here (not in a function)
net/ipv4/af_inet.c:862: error: ‘inet_collect’ undeclared here (not in a function)
Similar to problem with unix sockets. The solution is the same as well.
Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Cc: Dan Smith <danms@us.ibm.com>
---
include/net/inet_common.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/net/inet_common.h b/include/net/inet_common.h
index 7ade732..bf04e6e 100644
--- a/include/net/inet_common.h
+++ b/include/net/inet_common.h
@@ -52,6 +52,10 @@ extern int inet_checkpoint(struct ckpt_ctx *ctx, struct socket *sock);
extern int inet_collect(struct ckpt_ctx *ctx, struct socket *sock);
extern int inet_restore(struct ckpt_ctx *cftx, struct socket *sock,
struct ckpt_hdr_socket *h);
+#else
+#define inet_checkpoint NULL
+#define inet_collect NULL
+#define inet_restore NULL
#endif /* CONFIG_CHECKPOINT */
static inline void inet_ctl_sock_destroy(struct sock *sk)
--
1.5.6.3
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix compile issue with CONFIG_CHECKPOINT=n for inet sockets
[not found] ` <1254476123-4939-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
@ 2009-10-02 13:34 ` Dan Smith
[not found] ` <87iqexhqc4.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org>
2009-10-02 18:31 ` Oren Laadan
1 sibling, 1 reply; 4+ messages in thread
From: Dan Smith @ 2009-10-02 13:34 UTC (permalink / raw)
To: Matt Helsley; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
MH> Similar to problem with unix sockets. The solution is the same as well.
Indeed, sorry about that.
MH> Signed-off-by: Matt Helsley <matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Acked-by: Dan Smith <danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
--
Dan Smith
IBM Linux Technology Center
email: danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix compile issue with CONFIG_CHECKPOINT=n for inet sockets
[not found] ` <1254476123-4939-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-02 13:34 ` Dan Smith
@ 2009-10-02 18:31 ` Oren Laadan
1 sibling, 0 replies; 4+ messages in thread
From: Oren Laadan @ 2009-10-02 18:31 UTC (permalink / raw)
To: Matt Helsley
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA, Dan Smith
Queued to ckpt-v18-dev.
Matt Helsley wrote:
> When I disable CHECKPOINT I get:
>
> net/ipv4/af_inet.c:860: error: ‘inet_checkpoint’ undeclared here (not in a function)
> net/ipv4/af_inet.c:861: error: ‘inet_restore’ undeclared here (not in a function)
> net/ipv4/af_inet.c:862: error: ‘inet_collect’ undeclared here (not in a function)
>
> Similar to problem with unix sockets. The solution is the same as well.
>
> Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
> Cc: Dan Smith <danms@us.ibm.com>
> ---
> include/net/inet_common.h | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/include/net/inet_common.h b/include/net/inet_common.h
> index 7ade732..bf04e6e 100644
> --- a/include/net/inet_common.h
> +++ b/include/net/inet_common.h
> @@ -52,6 +52,10 @@ extern int inet_checkpoint(struct ckpt_ctx *ctx, struct socket *sock);
> extern int inet_collect(struct ckpt_ctx *ctx, struct socket *sock);
> extern int inet_restore(struct ckpt_ctx *cftx, struct socket *sock,
> struct ckpt_hdr_socket *h);
> +#else
> +#define inet_checkpoint NULL
> +#define inet_collect NULL
> +#define inet_restore NULL
> #endif /* CONFIG_CHECKPOINT */
>
> static inline void inet_ctl_sock_destroy(struct sock *sk)
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix compile issue with CONFIG_CHECKPOINT=n for inet sockets
[not found] ` <87iqexhqc4.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org>
@ 2009-10-02 19:47 ` Matt Helsley
0 siblings, 0 replies; 4+ messages in thread
From: Matt Helsley @ 2009-10-02 19:47 UTC (permalink / raw)
To: Dan Smith; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
On Fri, Oct 02, 2009 at 06:34:35AM -0700, Dan Smith wrote:
> MH> Similar to problem with unix sockets. The solution is the same as well.
>
> Indeed, sorry about that.
No problem. I noticed Serge testing this config earlier and thought I should
test my own patches with it again..
Cheers,
-Matt Helsley
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-02 19:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-02 9:35 [PATCH] Fix compile issue with CONFIG_CHECKPOINT=n for inet sockets Matt Helsley
[not found] ` <1254476123-4939-1-git-send-email-matthltc-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-02 13:34 ` Dan Smith
[not found] ` <87iqexhqc4.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org>
2009-10-02 19:47 ` Matt Helsley
2009-10-02 18:31 ` Oren Laadan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.