diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2010-09-20 16:32:10 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2010-10-16 19:57:43 -0400 |
commit | 0702d9ee0f1dcb6258789032f03b3208bfafaffc (patch) | |
tree | a5bf807f25f1d72b2577e1a37f8b125ac5a1cd21 /drivers/base | |
parent | ac5c24ec1e983313ef0015258fba6f630e54e7cf (diff) |
PM: Fix signed/unsigned warning in dpm_show_time()
Seen on MIPS32, gcc 4.4.3, 2.6.36-rc4:
drivers/base/power/main.c: In function 'dpm_show_time':
drivers/base/power/main.c:415: warning: comparison of distinct pointer types lacks a cast
do_div() takes unsigned parameters:
uint32_t do_div(uint64_t *n, uint32_t base);
Using an unsigned variable for usecs64 should not cause any problems,
because calltime >= starttime .
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 276d5a701dc3..db677199403c 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c | |||
@@ -407,7 +407,7 @@ static void pm_dev_err(struct device *dev, pm_message_t state, char *info, | |||
407 | static void dpm_show_time(ktime_t starttime, pm_message_t state, char *info) | 407 | static void dpm_show_time(ktime_t starttime, pm_message_t state, char *info) |
408 | { | 408 | { |
409 | ktime_t calltime; | 409 | ktime_t calltime; |
410 | s64 usecs64; | 410 | u64 usecs64; |
411 | int usecs; | 411 | int usecs; |
412 | 412 | ||
413 | calltime = ktime_get(); | 413 | calltime = ktime_get(); |