public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* Warning with asm-generic/div64.h
@ 2011-03-25 10:19 Guan Xuetao
  2011-03-25 13:39 ` Arnd Bergmann
  0 siblings, 1 reply; 5+ messages in thread
From: Guan Xuetao @ 2011-03-25 10:19 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linux-kernel, linux-arch

Hi, Arnd:

Following warning is generated when using <asm-generic/div64.h>

kernel/power/hibernate.c: In function 'swsusp_show_speed':
kernel/power/hibernate.c:227: warning: comparison of distinct pointer types lacks a cast

After expanding the do_div() macro, the problem line is:

	(void)(((typeof((n)) *)0) == ((uint64_t *)0));

while the type of n is s64.

I am puzzled with the usage of the problem line.

And how to correct it?

Guan Xuetao

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-29 11:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 10:19 Warning with asm-generic/div64.h Guan Xuetao
2011-03-25 13:39 ` Arnd Bergmann
2011-03-29 11:41   ` Guan Xuetao
2011-03-29 11:58     ` Arnd Bergmann
2011-03-29 11:58       ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox