projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d83f905
)
PM: Avoid compiler warning in pm_noirq_op()
author
Rafael J. Wysocki
<rjw@sisk.pl>
Tue, 14 Dec 2010 23:17:29 +0000
(
00:17
+0100)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Fri, 24 Dec 2010 14:02:42 +0000
(15:02 +0100)
The compiler complains that calltime may be uninitialized in
pm_noirq_op(), so add extra initialization for that variable to
avoid the warning.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/power/main.c
b/drivers/base/power/main.c
index fb4ca2870081b46b1a97240b21cab801809ed246..e6d628012654e0edbf2b2081aa8dc524e7206a52 100644
(file)
--- a/
drivers/base/power/main.c
+++ b/
drivers/base/power/main.c
@@
-304,7
+304,7
@@
static int pm_noirq_op(struct device *dev,
pm_message_t state)
{
int error = 0;
- ktime_t calltime, delta, rettime;
+ ktime_t calltime
= ktime_set(0, 0)
, delta, rettime;
if (initcall_debug) {
pr_info("calling %s+ @ %i, parent: %s\n",