From: Chen Gang Date: Fri, 25 Apr 2014 00:44:59 +0000 (+0800) Subject: PM / hibernate: use unsigned local variables in swsusp_show_speed() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4881f603d7b82df2bc15efd2a272f973a3bf8df1;p=pandora-kernel.git PM / hibernate: use unsigned local variables in swsusp_show_speed() do_div() needs 'u64' type, or it reports warning. And negative number is meaningless for "speed", so change all signed to unsigned within swsusp_show_speed(). The related warning (with allmodconfig for unicore32): CC kernel/power/hibernate.o kernel/power/hibernate.c: In function ‘swsusp_show_speed’: kernel/power/hibernate.c:237: warning: comparison of distinct pointer types lacks a cast Signed-off-by: Chen Gang [rjw: Subject] Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed