From: Jeff Kirsher Date: Sat, 2 May 2015 08:20:04 +0000 (-0700) Subject: e1000e: fix call to do_div() to use u64 arg X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~375^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30544af5483755b11bb5924736e9e0b45ef0644a;p=pandora-kernel.git e1000e: fix call to do_div() to use u64 arg We were using s64 for lat_ns (latency nano-second value) since in our calculations a negative value could be a resultant. For negative values, we then assign lat_ns to be zero, so the value passed to do_div() was never negative, but do_div() expects the argument type to be u64, so do a cast to resolve a compile warning seen on PowerPC. CC: Yanjiang Jin CC: Yanir Lubetkin Reported-by: Yanjiang Jin Signed-off-by: Jeff Kirsher Tested-by: Aaron Brown --- Reading git-diff-tree failed