linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Trivial warning fix patch
@ 2004-09-14 13:36 Pantelis Antoniou
  2004-09-14 23:15 ` Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Pantelis Antoniou @ 2004-09-14 13:36 UTC (permalink / raw)
  To: Linux PPC Dev, Tom Rini

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

Hi

The following patch removes some annoying warnings produced
by the latest gccs.

Regards

Pantelis

[-- Attachment #2: rheap.patch --]
[-- Type: text/x-patch, Size: 1250 bytes --]

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 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Trivial warning fix patch
  2004-09-14 13:36 [PATCH] Trivial warning fix patch Pantelis Antoniou
@ 2004-09-14 23:15 ` Tom Rini
  2004-09-15  6:18   ` Pantelis Antoniou
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Rini @ 2004-09-14 23:15 UTC (permalink / raw)
  To: Pantelis Antoniou; +Cc: Linux PPC Dev

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..)

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Trivial warning fix patch
  2004-09-14 23:15 ` Tom Rini
@ 2004-09-15  6:18   ` Pantelis Antoniou
  2004-09-15 14:39     ` Tom Rini
  0 siblings, 1 reply; 4+ messages in thread
From: Pantelis Antoniou @ 2004-09-15  6:18 UTC (permalink / raw)
  To: Tom Rini; +Cc: Linux PPC Dev

[-- Attachment #1: Type: text/plain, Size: 483 bytes --]

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 <panto@intracom.gr>

Boy is this anal or what?

Regards

Pantelis




[-- Attachment #2: rheap.patch --]
[-- Type: text/x-patch, Size: 1250 bytes --]

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 {

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Trivial warning fix patch
  2004-09-15  6:18   ` Pantelis Antoniou
@ 2004-09-15 14:39     ` Tom Rini
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2004-09-15 14:39 UTC (permalink / raw)
  To: Pantelis Antoniou; +Cc: Linux PPC Dev

On Wed, Sep 15, 2004 at 09:18:37AM +0300, Pantelis Antoniou wrote:

> 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 <panto@intracom.gr>

Thanks, I've tossed this into my tree to point Linus at.

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-15 14:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-14 13:36 [PATCH] Trivial warning fix patch Pantelis Antoniou
2004-09-14 23:15 ` Tom Rini
2004-09-15  6:18   ` Pantelis Antoniou
2004-09-15 14:39     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).