Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-07 Thread Simon Glass
Hi, On Tue, Nov 6, 2012 at 2:30 PM, Marek Vasut wrote: > Dear Pavel Machek, > >> On Tue 2012-11-06 01:56:50, Marek Vasut wrote: >> > Dear Pavel Machek, >> > >> > > Hi! >> > > >> > > In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you >> > > wrote: >> > > >> > > > /* A

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-06 Thread Marek Vasut
Dear Pavel Machek, > On Tue 2012-11-06 01:56:50, Marek Vasut wrote: > > Dear Pavel Machek, > > > > > Hi! > > > > > > In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you wrote: > > > >> > > > /* Append length in bits and transform */ > > > >> > > > > > > >> >

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-06 Thread Pavel Machek
On Tue 2012-11-06 01:56:50, Marek Vasut wrote: > Dear Pavel Machek, > > > Hi! > > > > In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you wrote: > > >> > > > /* Append length in bits and transform */ > > >> > > > > > >> > > > - ctx->in32[14] = ctx->bits[

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-05 Thread 沈涵
On Mon, Nov 5, 2012 at 12:50 PM, Wolfgang Denk wrote: > Dear Pavel, > > In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you wrote: > > > > > > > /* Append length in bits and transform */ > > > > > - ctx->in32[14] = ctx->bits[0]; > > > > > - ctx->in32[15] = ctx->bit

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-05 Thread Marek Vasut
Dear Pavel Machek, > Hi! > > In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you wrote: > >> > > > /* Append length in bits and transform */ > >> > > > > >> > > > - ctx->in32[14] = ctx->bits[0]; > >> > > > - ctx->in32[15] = ctx->bits[1]; > >

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-05 Thread Pavel Machek
Hi! In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you wrote: >> >> > > > /* Append length in bits and transform */ >> > > > - ctx->in32[14] = ctx->bits[0]; >> > > > - ctx->in32[15] = ctx->bits[1]; >> > > > + memcpy(ctx->in + 14 * siz

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-05 Thread Wolfgang Denk
Dear Pavel, In message <20121105200340.GA15821@xo-6d-61-c0.localdomain> you wrote: > > > > > /* Append length in bits and transform */ > > > > - ctx->in32[14] = ctx->bits[0]; > > > > - ctx->in32[15] = ctx->bits[1]; > > > > + memcpy(ctx->in + 14 * sizeof(__u32), ctx->bits

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-05 Thread Pavel Machek
Hi! > In message <20121104003242.92729200...@gemini.denx.de> I wrote: > > > > > /* Append length in bits and transform */ > > > - ctx->in32[14] = ctx->bits[0]; > > > - ctx->in32[15] = ctx->bits[1]; > > > + memcpy(ctx->in + 14 * sizeof(__u32), ctx->bits, 2 * sizeof(__u32)); > > > > This makes t

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-03 Thread Wolfgang Denk
Dear Simon, In message <20121104003242.92729200...@gemini.denx.de> I wrote: > > > /* Append length in bits and transform */ > > - ctx->in32[14] = ctx->bits[0]; > > - ctx->in32[15] = ctx->bits[1]; > > + memcpy(ctx->in + 14 * sizeof(__u32), ctx->bits, 2 * sizeof(__u32)); > > This makes t

Re: [U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-03 Thread Wolfgang Denk
Dear Simon Glass, In message <1351979121-3769-2-git-send-email-...@chromium.org> you wrote: > From: Han Shen > > Fixed by replacing pointer casting with memcpy. > > Signed-off-by: Simon Glass > --- > lib/md5.c |3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/li

[U-Boot] [PATCH 2/3] md5: Fix gcc-4.7 build problem in md5

2012-11-03 Thread Simon Glass
From: Han Shen Fixed by replacing pointer casting with memcpy. Signed-off-by: Simon Glass --- lib/md5.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/lib/md5.c b/lib/md5.c index 2ae4a06..9791e59 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -153,8 +153,7 @@ MD5Final(un