From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: 2.6.22-rc2 built on ppc (1) Date: Sat, 9 Jun 2007 15:55:33 +0200 Message-ID: <20070609135533.GB3397@elf.ucw.cz> References: <20070520110625.GC3253@aragorn.home.lxtec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070520110625.GC3253@aragorn.home.lxtec.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Elimar Riesebieter Cc: linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org Hi! > FYI, building 2.6.22-rc2 with > gcc (GCC) 4.1.3 20070514 (prerelease) (Debian 4.1.2-7) > on my powerbook (PPC) gives: > > ... > kernel/power/swsusp.c: In function 'swsusp_show_speed': > kernel/power/swsusp.c:193: warning: comparison of distinct pointer types lacks a cast > ... > > > If more info is needed, please contact me via PM, as I am not > subscribed. void swsusp_show_speed(struct timeval *start, struct timeval *stop, unsigned nr_pages, char *msg) { s64 elapsed_centisecs64; int centisecs; int k; int kps; elapsed_centisecs64 = timeval_to_ns(stop) - timeval_to_ns(start); do_div(elapsed_centisecs64, NSEC_PER_SEC / 100); centisecs = elapsed_centisecs64; if (centisecs == 0) centisecs = 1; /* avoid div-by-zero */ Hmm, which line triggers that? do_div? Can you add some casts to work around this? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html