From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Dale Harris <rodmur@maybe.org>
Cc: linux-kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: compile problems on PPC for 2.6.0-test4
Date: Sat, 06 Sep 2003 10:08:34 +0200 [thread overview]
Message-ID: <1062835714.824.17.camel@gaston> (raw)
In-Reply-To: <20030906040904.GM29466@maybe.org>
On Sat, 2003-09-06 at 06:09, Dale Harris wrote:
> This is a PowerBook G4, debian unstable, gcc-2.95.4
>
> A couple of compile warnings errors:
>
> CC drivers/macintosh/via-pmu.o
> drivers/macintosh/via-pmu.c: In function `powerbook_sleep_grackle':
> drivers/macintosh/via-pmu.c:2465: warning: integer overflow in expression
> drivers/macintosh/via-pmu.c: In function `powerbook_sleep_Core99':
> drivers/macintosh/via-pmu.c:2557: warning: integer overflow in expression
It's barking on mdelay(5000) which is a debug thing (when you pass
'fake_sleep' to the kernel, it will stop 5 seconds in there then wakeup
instead of letting the PMU shut the CPU down, it's useful for debugging
driver sleep code.
It shoud not be failing on this though:
#define mdelay(n) (\
(__builtin_constant_p(n) && (n)<=MAX_UDELAY_MS) ? udelay((n)*1000) : \
({unsigned long __ms=(n); while (__ms--) udelay(1000);}))
The __builtin_constant_p(5000) && (5000)<=5 test should fail thus
turning into a loop of udelay(1000). Your gcc seems to be screwing
it up. What version are you using ?
> CC drivers/net/sungem.o
> drivers/net/sungem.c:2444: duplicate initializer
> drivers/net/sungem.c:2444: (near initialization for
> `gem_ethtool_ops.get_link')
> make[3]: *** [drivers/net/sungem.o] Error 1
> make[2]: *** [drivers/net] Error 2
> make[1]: *** [drivers] Error 2
> make[1]: Leaving directory `/usr/src/linuxppc-2.6'
The current bk snapshot I have here doesn't have a problem at this line.
>
> Also the planb video 4 linux driver doesn't seem to be compiling either.
> I failed to save the error messages.
I'll check that out, thanks.
Ben.
next prev parent reply other threads:[~2003-09-06 8:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-06 4:09 compile problems on PPC for 2.6.0-test4 Dale Harris
2003-09-06 8:08 ` Benjamin Herrenschmidt [this message]
2003-09-06 13:55 ` Dale Harris
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=1062835714.824.17.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rodmur@maybe.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