Re: 2.6.22-rc2 built on ppc (1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 09 Jun 2007 the mental interface of
Pavel Machek told:

> Hi!
> 
> > > > kernel/power/swsusp.c: In function 'swsusp_show_speed':
> > > > kernel/power/swsusp.c:193: warning: comparison of distinct pointer types lacks a cast
> > > 
> > > Well, this warning doesn't make sense.  In 2.6.22-rc2 line 193 of swsusp.c is
> > > 
> > > do_div(elapsed_centisecs64, NSEC_PER_SEC / 100);
> > > 
> > > where elapsed_centisecs64 is s64.
> > 
> > yeah, and the do_div64 macro is then comparing (s64*) == (u64*) in a
> > null-statement and tells you that the types are different. I tracked
> > this a long time ago and figured it wasn't worth thinking about.
> 
> Elimar, can you modify the code to 
> 
> do_div(elapsed_centisecs64, (s64) NSEC_PER_SEC / 100);
> 
> ...to see if the warning goes away?

Same warning :(

Elimar

-- 
  It's a good thing we don't get all 
  the government we pay for.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux