From: Pantelis Antoniou <panto@intracom.gr>
To: Linux PPC Dev <linuxppc-dev@ozlabs.org>,
Tom Rini <trini@kernel.crashing.org>
Subject: [PATCH] Trivial warning fix patch
Date: Tue, 14 Sep 2004 16:36:03 +0300 [thread overview]
Message-ID: <4146F3C3.2090100@intracom.gr> (raw)
[-- 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 {
next reply other threads:[~2004-09-14 13:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-14 13:36 Pantelis Antoniou [this message]
2004-09-14 23:15 ` [PATCH] Trivial warning fix patch Tom Rini
2004-09-15 6:18 ` Pantelis Antoniou
2004-09-15 14:39 ` Tom Rini
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=4146F3C3.2090100@intracom.gr \
--to=panto@intracom.gr \
--cc=linuxppc-dev@ozlabs.org \
--cc=trini@kernel.crashing.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 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).