mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel.crashing.org>
To: Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>,
	Jean-Christophe Dubois <jdubois@mc.com>,
	kai@germaschewski.name, sam@ravnborg.org
Subject: Re: [PATCH 2.6.9] kbuild warning fixes on Solaris 9
Date: Tue, 26 Oct 2004 13:41:32 -0700	[thread overview]
Message-ID: <20041026204132.GD926@smtp.west.cox.net> (raw)
In-Reply-To: <20041026221408.GB30918@mars.ravnborg.org>

On Wed, Oct 27, 2004 at 12:14:08AM +0200, Sam Ravnborg wrote:
> On Mon, Oct 25, 2004 at 03:49:07PM -0700, Tom Rini wrote:
> > The following set of patches is based loosely on the patches that
> > Jean-Christophe Dubois came up with for 2.6.7.  Where as the original
> > patches added a number of casts to unsigned char, I went the route of
> > making the chars be explicitly signed.  I honestly don't know which
> > route is better to go down.  Doing this is the bulk of the patch.  Out
> > of the rest of the odds 'n ends is that on Solaris, Elf32_Word is a
> > ulong, which means all of the printf's are unhappy (uint format, ulong
> > arg) for most of the typedefs.
> > 
> > Signed-off-by: Tom Rini <trini@kernel.crashing.org>
> > 
> > Comments?  Beatings?  Thanks.
> 
> Looks much better. Applied.

Great.  A coworker of mine give them a look-over and spotted a few
places where I missed changing some casts.


Signed-off-by: Tom Rini <trini@kernel.crashing.org>

--- linux-2.6.9/scripts/basic/fixdep.c
+++ linux-2.6.9/scripts/basic/fixdep.c
@@ -225,10 +225,10 @@
 	signed char *p, *q;
 
 	for (; m < end; m++) {
-		if (*m == INT_CONF) { p = (char *) m  ; goto conf; }
-		if (*m == INT_ONFI) { p = (char *) m-1; goto conf; }
-		if (*m == INT_NFIG) { p = (char *) m-2; goto conf; }
-		if (*m == INT_FIG_) { p = (char *) m-3; goto conf; }
+		if (*m == INT_CONF) { p = (signed char *) m  ; goto conf; }
+		if (*m == INT_ONFI) { p = (signed char *) m-1; goto conf; }
+		if (*m == INT_NFIG) { p = (signed char *) m-2; goto conf; }
+		if (*m == INT_FIG_) { p = (signed char *) m-3; goto conf; }
 		continue;
 	conf:
 		if (p > map + len - 7)
--- linux-2.6.9/scripts/mod/modpost.c
+++ linux-2.6.9/scripts/mod/modpost.c
@@ -215,7 +215,7 @@
 	static char line[4096];
 	int skip = 1;
 	size_t len = 0;
-	signed char *p = (char *)file + *pos;
+	signed char *p = (signed char *)file + *pos;
 	char *s = line;
 
 	for (; *pos < size ; (*pos)++)

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

  reply	other threads:[~2004-10-26 20:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 22:49 Tom Rini
2004-10-26 14:39 ` Tom Rini
2004-10-26 22:14 ` Sam Ravnborg
2004-10-26 20:41   ` Tom Rini [this message]
2004-10-30 23:39     ` Sam Ravnborg

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=20041026204132.GD926@smtp.west.cox.net \
    --to=trini@kernel.crashing.org \
    --cc=akpm@osdl.org \
    --cc=jdubois@mc.com \
    --cc=kai@germaschewski.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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

Powered by JetHome