Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 124ff4e5 authored by Vitaliy Ivanov's avatar Vitaliy Ivanov Committed by Jiri Kosina
Browse files

async: uninitialized warning corrections



The variables here are really not used uninitialized.

kernel/async.c: In function 'async_synchronize_cookie_domain':
kernel/async.c:270:10: warning: 'starttime.tv64' may be used uninitialized in this function
kernel/async.c: In function 'async_run_entry_fn':
kernel/async.c:122:10: warning: 'calltime.tv64' may be used uninitialized in this function

Signed-off-by: default avatarVitaliy Ivanov <vitalivanov@gmail.com>
Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@st.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f1ee39ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -120,7 +120,7 @@ static void async_run_entry_fn(struct work_struct *work)
	struct async_entry *entry =
	struct async_entry *entry =
		container_of(work, struct async_entry, work);
		container_of(work, struct async_entry, work);
	unsigned long flags;
	unsigned long flags;
	ktime_t calltime, delta, rettime;
	ktime_t uninitialized_var(calltime), delta, rettime;


	/* 1) move self to the running queue */
	/* 1) move self to the running queue */
	spin_lock_irqsave(&async_lock, flags);
	spin_lock_irqsave(&async_lock, flags);
@@ -269,7 +269,7 @@ EXPORT_SYMBOL_GPL(async_synchronize_full_domain);
void async_synchronize_cookie_domain(async_cookie_t cookie,
void async_synchronize_cookie_domain(async_cookie_t cookie,
				     struct list_head *running)
				     struct list_head *running)
{
{
	ktime_t starttime, delta, endtime;
	ktime_t uninitialized_var(starttime), delta, endtime;


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