From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailserv.intranet.gr (mailserv.intranet.GR [146.124.14.106]) by ozlabs.org (Postfix) with ESMTP id 8E10C2BD6A for ; Wed, 15 Sep 2004 16:24:27 +1000 (EST) Received: from mailserv.intranet.gr (localhost [127.0.0.1]) by mailserv.intranet.gr (8.13.1/8.13.1) with ESMTP id i8F6OaIq026965 for ; Wed, 15 Sep 2004 09:24:37 +0300 (EEST) Message-ID: <4147DEBD.4090206@intracom.gr> Date: Wed, 15 Sep 2004 09:18:37 +0300 From: Pantelis Antoniou MIME-Version: 1.0 To: Tom Rini References: <4146F3C3.2090100@intracom.gr> <20040914231551.GC9398@smtp.west.cox.net> In-Reply-To: <20040914231551.GC9398@smtp.west.cox.net> Content-Type: multipart/mixed; boundary="------------010908060103060301040506" Cc: Linux PPC Dev Subject: Re: [PATCH] Trivial warning fix patch List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------010908060103060301040506 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Tom Rini wrote: > On Tue, Sep 14, 2004 at 04:36:03PM +0300, Pantelis Antoniou wrote: > > >>Hi >> >>The following patch removes some annoying warnings produced >>by the latest gccs. > > > Can you please read the Developer's Certificate of Origin 1.0 (found in > Documentation/SubmittingPatches and add the approraite lines? Thanks (I > hate to be annoying about it, but..) > Signed-off-by: Pantelis Antoniou Boy is this anal or what? Regards Pantelis --------------010908060103060301040506 Content-Type: text/x-patch; name="rheap.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rheap.patch" diff -Nur --exclude=RCS --exclude=CVS --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet linuxppc_2.5/arch/ppc/lib/rheap.c linuxppc_2.5-intracom/arch/ppc/lib/rheap.c --- linuxppc_2.5/arch/ppc/lib/rheap.c 2004-07-16 10:03:07 +03:00 +++ linuxppc_2.5-intracom/arch/ppc/lib/rheap.c 2004-09-14 12:58:48 +03:00 @@ -216,7 +216,7 @@ /* Grow the after block backwards */ if (before == NULL && after != NULL) { - (int8_t *) after->start -= size; + after->start = (int8_t *)after->start - size; after->size += size; return; } @@ -407,7 +407,7 @@ /* blk still in free list, with updated start and/or size */ if (bs == s || be == e) { if (bs == s) - (int8_t *) blk->start += size; + blk->start = (int8_t *)blk->start + size; blk->size -= size; } else { @@ -471,7 +471,7 @@ newblk->owner = owner; /* blk still in free list, with updated start, size */ - (int8_t *) blk->start += size; + blk->start = (int8_t *)blk->start + size; blk->size -= size; start = newblk->start; @@ -535,7 +535,7 @@ /* blk still in free list, with updated start and/or size */ if (bs == s || be == e) { if (bs == s) - (int8_t *) blk->start += size; + blk->start = (int8_t *)blk->start + size; blk->size -= size; } else { --------------010908060103060301040506--