Re: [PATCH] Fix compile issue with CONFIG_CHECKPOINT=n for inet sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> Cc: Dan Smith <danms@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux