[PATCH] Fix build break when CONFIG_CHECKPOINT=n

Oren Laadan orenl at cs.columbia.edu
Wed Sep 29 16:19:05 PDT 2010


Applied to ckpt-v22-dev - thanks.

Oren.

On 09/23/2010 12:48 PM, Dan Smith wrote:
> This was introduced in my sem_undo patch.  Oops.
> 
> Signed-off-by: Dan Smith <danms at us.ibm.com>
> ---
>  ipc/sem.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/ipc/sem.c b/ipc/sem.c
> index 9e3e463..2e54c21 100644
> --- a/ipc/sem.c
> +++ b/ipc/sem.c
> @@ -1478,6 +1478,7 @@ static int sysvipc_sem_proc_show(struct seq_file *s, void *it)
>  }
>  #endif
>  
> +#ifdef CONFIG_CHECKPOINT
>  static int __get_semids(struct sem_undo_list *ulp, int *semids, int max)
>  {
>  	int count = 0;
> @@ -1786,6 +1787,7 @@ static const struct ckpt_obj_ops ckpt_obj_sem_undo_ops = {
>  	.checkpoint = checkpoint_sem_undo,
>  	.restore = restore_sem_undo,
>  };
> +#endif
>  
>  void __init sem_init (void)
>  {
> @@ -1794,9 +1796,11 @@ void __init sem_init (void)
>  				"       key      semid perms      nsems   uid   gid  cuid  cgid      otime      ctime\n",
>  				IPC_SEM_IDS, sysvipc_sem_proc_show);
>  
> +#ifdef CONFIG_CHECKPOINT
>  	/* sem_undo_list uses a short but we write a __s16 */
>  	CKPT_BUILD_BUG_ON_MISMATCH(*CKPT_STRUCT_MEMBER(sem_undo, semadj),
>  				   __s16);
>  
>  	register_checkpoint_obj(&ckpt_obj_sem_undo_ops);
> +#endif
>  }


More information about the Containers mailing list