From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757011Ab1ANLxP (ORCPT ); Fri, 14 Jan 2011 06:53:15 -0500 Received: from eu1sys200aog115.obsmtp.com ([207.126.144.139]:54176 "EHLO eu1sys200aog115.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756628Ab1ANLxL (ORCPT ); Fri, 14 Jan 2011 06:53:11 -0500 From: Viresh Kumar To: , Cc: Viresh Kumar Subject: [PATCH resend] kernel/async.c: fixing compilation warnings Date: Fri, 14 Jan 2011 17:23:00 +0530 Message-ID: <1295005980-12297-1-git-send-email-viresh.kumar@st.com> X-Mailer: git-send-email 1.7.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes following compilation warnings: 270:10: warning: ‘starttime.tv64’ may be used uninitialized in this function 122:10: warning: ‘calltime.tv64’ may be used uninitialized in this function Signed-off-by: Viresh Kumar --- kernel/async.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/async.c b/kernel/async.c index cd9dbb9..3ff777b 100644 --- a/kernel/async.c +++ b/kernel/async.c @@ -119,7 +119,7 @@ static void async_run_entry_fn(struct work_struct *work) struct async_entry *entry = container_of(work, struct async_entry, work); unsigned long flags; - ktime_t calltime, delta, rettime; + ktime_t uninitialized_var(calltime), delta, rettime; /* 1) move self to the running queue */ spin_lock_irqsave(&async_lock, flags); @@ -267,7 +267,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 uninitialized_var(starttime), delta, endtime; if (initcall_debug && system_state == SYSTEM_BOOTING) { printk("async_waiting @ %i\n", task_pid_nr(current)); -- 1.7.2.2