[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <007801cbead6$1984b6e0$4c8e24a0$@mprc.pku.edu.cn>
Date: Fri, 25 Mar 2011 18:19:15 +0800
From: "Guan Xuetao" <gxt@...c.pku.edu.cn>
To: "Arnd Bergmann" <arnd@...db.de>
Cc: <linux-kernel@...r.kernel.org>, <linux-arch@...r.kernel.org>
Subject: Warning with asm-generic/div64.h
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists