From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: Paul Mackerras <paulus@samba.org>,
linux-kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] PPC32 Fix warning with ndelay (with patch !)
Date: 23 May 2003 10:39:28 +0200 [thread overview]
Message-ID: <1053679168.1159.102.camel@gaston> (raw)
In-Reply-To: <1053679084.1160.99.camel@gaston>
OOOps, here's the real one...
This patch fixes a warning with recent gcc's when using the new
ndelay() function, by properly defining a large constant as unsigned
===== include/asm-ppc/delay.h 1.5 vs edited =====
--- 1.5/include/asm-ppc/delay.h Wed Feb 12 05:29:33 2003
+++ edited/include/asm-ppc/delay.h Fri May 23 10:26:50 2003
@@ -30,8 +30,8 @@
* (which corresponds to ~3800 bogomips at HZ = 100).
* -- paulus
*/
-#define __MAX_UDELAY (226050910/HZ) /* maximum udelay argument */
-#define __MAX_NDELAY (4294967295/HZ) /* maximum ndelay argument */
+#define __MAX_UDELAY (226050910UL/HZ) /* maximum udelay argument */
+#define __MAX_NDELAY (4294967295UL/HZ) /* maximum ndelay argument */
extern __inline__ void __udelay(unsigned int x)
{
next prev parent reply other threads:[~2003-05-23 8:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-23 8:38 [PATCH] Fix warning with ndelay Benjamin Herrenschmidt
2003-05-23 8:39 ` Benjamin Herrenschmidt [this message]
2003-05-23 9:08 ` Riley Williams
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=1053679168.1159.102.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=paulus@samba.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