All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Nathan Lynch <ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: Re: [PATCH 1/9] checkpoint: fix integer-pointer conversion warnings
Date: Wed, 16 Sep 2009 09:21:37 -0500	[thread overview]
Message-ID: <20090916142137.GA13476@us.ibm.com> (raw)
In-Reply-To: <1253091418-14807-2-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>

Quoting Nathan Lynch (ntl@pobox.com):
>   CC      checkpoint/process.o
> checkpoint/process.c: In function ‘checkpoint_task_struct’:
> checkpoint/process.c:97: warning: assignment makes integer from pointer without a cast
> checkpoint/process.c:98: warning: assignment makes integer from pointer without a cast
> checkpoint/process.c: In function ‘restore_task_struct’:
> checkpoint/process.c:475: warning: assignment makes pointer from integer without a cast
> checkpoint/process.c:476: warning: assignment makes pointer from integer without a cast
> 
> Signed-off-by: Nathan Lynch <ntl@pobox.com>
> ---
>  checkpoint/process.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/checkpoint/process.c b/checkpoint/process.c
> index 41566db..b7f4a43 100644
> --- a/checkpoint/process.c
> +++ b/checkpoint/process.c
> @@ -94,8 +94,8 @@ static int checkpoint_task_struct(struct ckpt_ctx *ctx, struct task_struct *t)
>  		h->exit_signal = t->exit_signal;
>  		h->pdeath_signal = t->pdeath_signal;
>  
> -		h->set_child_tid = t->set_child_tid;
> -		h->clear_child_tid = t->clear_child_tid;
> +		h->set_child_tid = (unsigned long)t->set_child_tid;
> +		h->clear_child_tid = (unsigned long)t->clear_child_tid;

But it's defined as __u64 in checkpoint_hdr.h.  So on 32-bit this cast
won't be right, right?

But a major ack to shutting this thing up.

thanks,
-serge

>  		save_task_robust_futex_list(h, t);
>  	}
>  
> @@ -472,8 +472,8 @@ static int restore_task_struct(struct ckpt_ctx *ctx)
>  		t->exit_signal = h->exit_signal;
>  		t->pdeath_signal = h->pdeath_signal;
>  
> -		t->set_child_tid = h->set_child_tid;
> -		t->clear_child_tid = h->clear_child_tid;
> +		t->set_child_tid = (void __user *)h->set_child_tid;
> +		t->clear_child_tid = (void __user *)h->clear_child_tid;
>  		restore_task_robust_futex_list(h);
>  	}
>  
> -- 
> 1.6.0.6
> 
> _______________________________________________
> Containers mailing list
> Containers@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/containers
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers

  parent reply	other threads:[~2009-09-16 14:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-16  8:56 [PATCH 0/9] powerpc checkpoint/restart kernel support Nathan Lynch
     [not found] ` <1253091418-14807-1-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
2009-09-16  8:56   ` [PATCH 1/9] checkpoint: fix integer-pointer conversion warnings Nathan Lynch
     [not found]     ` <1253091418-14807-2-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
2009-09-16 14:21       ` Serge E. Hallyn [this message]
     [not found]         ` <20090916142137.GA13476-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-09-16 15:08           ` Oren Laadan
     [not found]             ` <4AB0FF6E.6010505-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-16 17:03               ` Serge E. Hallyn
2009-09-16  8:56   ` [PATCH 2/9] fix trivial build breaks in compat code Nathan Lynch
2009-09-16  8:56   ` [PATCH 3/9] futex.h: fix compat builds Nathan Lynch
     [not found]     ` <1253091418-14807-4-git-send-email-ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
2009-09-16 15:36       ` Oren Laadan
     [not found]         ` <4AB105F0.4040105-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-16 17:46           ` Nathan Lynch
2009-09-16  8:56   ` [PATCH 4/9] powerpc: reserve checkpoint arch identifiers Nathan Lynch
2009-09-16  8:56   ` [PATCH 5/9] powerpc: provide APIs for validating and updating DABR Nathan Lynch
2009-09-16  8:56   ` [PATCH 6/9] powerpc: checkpoint/restart implementation Nathan Lynch
2009-09-16  8:56   ` [PATCH 7/9] powerpc: wire up checkpoint and restart syscalls Nathan Lynch
2009-09-16  8:56   ` [PATCH 8/9] powerpc: enable checkpoint support in Kconfig Nathan Lynch
2009-09-16  8:56   ` [PATCH 9/9] powerpc: clone_with_pids implementation Nathan Lynch
2009-09-16 15:11   ` [PATCH 0/9] powerpc checkpoint/restart kernel support Oren Laadan
     [not found]     ` <4AB10008.8040401-RdfvBDnrOixBDgjK7y7TUQ@public.gmane.org>
2009-09-16 17:49       ` Nathan Lynch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090916142137.GA13476@us.ibm.com \
    --to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=ntl-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.