Re: 2.6.22-rc2 built on ppc (1)

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

 



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.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
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