Skip to content

Commit

Permalink
kernel/async, init/main.c & kernel/async & init/main.c: cleanups (com…
Browse files Browse the repository at this point in the history
…piler warning)
  • Loading branch information
LeeDrOiD committed May 15, 2011
1 parent 250b220 commit 5eff556
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/base/power/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ static int pm_noirq_op(struct device *dev,
pm_message_t state)
{
int error = 0;
ktime_t calltime, delta, rettime;
ktime_t calltime = { .tv64 = 0 }, delta, rettime;

if (initcall_debug) {
pr_info("calling %s+ @ %i, parent: %s\n",
Expand Down
2 changes: 1 addition & 1 deletion init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ static struct boot_trace_ret ret;
int do_one_initcall(initcall_t fn)
{
int count = preempt_count();
ktime_t calltime, delta, rettime;
ktime_t calltime = { .tv64 = 0 }, delta, rettime;

if (initcall_debug) {
call.caller = task_pid_nr(current);
Expand Down
4 changes: 2 additions & 2 deletions kernel/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static void run_one_entry(void)
{
unsigned long flags;
struct async_entry *entry;
ktime_t calltime, delta, rettime;
ktime_t calltime = { .tv64 = 0 }, delta, rettime;

/* 1) pick one task from the pending queue */

Expand Down Expand Up @@ -280,7 +280,7 @@ EXPORT_SYMBOL_GPL(async_synchronize_full_domain);
void async_synchronize_cookie_domain(async_cookie_t cookie,
struct list_head *running)
{
ktime_t starttime, delta, endtime;
ktime_t starttime = { .tv64 = 0 }, delta, endtime;

if (initcall_debug && system_state == SYSTEM_BOOTING) {
printk("async_waiting @ %i\n", task_pid_nr(current));
Expand Down

0 comments on commit 5eff556

Please sign in to comment.