All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: "Qiu, Michael" <michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH] librte_eal/common: Fix cast from pointer to integer of different size
Date: Mon, 09 Mar 2015 12:43:38 +0100	[thread overview]
Message-ID: <3556491.n1SbkH6aXT@xps13> (raw)
In-Reply-To: <F60F360A2500CD45ACDB1D700268892D0E792B73-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>

> > ./i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error:
> > cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
> > 
> >   dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16;
> > 
> > Type 'long long' is 64-bit in i686 platform while 'void *'
> > is 32-bit.
> > 
> > Signed-off-by: Michael Qiu <michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > Signed-off-by: Zhihong Wang <zhihong.wang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > ---
> > v4 --> v3:
> > 	fix dstofss/bits to size_t in rte_memcpy()
> > v3 --> v2:
> >         make dstofss and srcofs to be type size_t
> >         casting type use uintptr_t
> > 
> > v2 --> v1:
> >         Remove unnecessary casting (void *)
> 
> Acked-by:  Wang, Zhihong <zhihong.wang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Applied, thanks

      parent reply	other threads:[~2015-03-09 11:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02  7:27 [PATCH] librte_eal/common: Fix cast from pointer to integer of different size Michael Qiu
     [not found] ` <1425281223-14043-1-git-send-email-michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-03-02 11:39   ` Gonzalez Monroy, Sergio
2015-03-03  2:02     ` Qiu, Michael
2015-03-03  2:20   ` [PATCH v2] " Michael Qiu
     [not found]     ` <1425349251-15663-1-git-send-email-michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-03-03  8:25       ` Pawel Wodkowski
2015-03-03  9:59         ` Qiu, Michael
     [not found]           ` <533710CFB86FA344BFBF2D6802E60286CED932-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-03 13:37             ` Pawel Wodkowski
2015-03-04  1:58               ` Qiu, Michael
     [not found]                 ` <533710CFB86FA344BFBF2D6802E60286CEDC0D-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-04  8:18                   ` Pawel Wodkowski
2015-03-04 11:24                     ` Qiu, Michael
2015-03-05  7:46   ` [PATCH v3] " Michael Qiu
     [not found]     ` <1425541598-8669-1-git-send-email-michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-03-05  8:25       ` Tang, HaifengX
2015-03-06  3:13       ` [PATCH] " Michael Qiu
     [not found]         ` <1425611587-769-1-git-send-email-michael.qiu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-03-09  5:38           ` Wang, Zhihong
     [not found]             ` <F60F360A2500CD45ACDB1D700268892D0E792B73-0J0gbvR4kThpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2015-03-09 11:43               ` Thomas Monjalon [this message]

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=3556491.n1SbkH6aXT@xps13 \
    --to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=michael.qiu-ral2JQCrhuEAvxtiuMwx3w@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.