From 30544af5483755b11bb5924736e9e0b45ef0644a Mon Sep 17 00:00:00 2001 From: Jeff Kirsher Date: Sat, 2 May 2015 01:20:04 -0700 Subject: [PATCH] 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-format-patch failed