lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4D302FC3.7060008@st.com>
Date:	Fri, 14 Jan 2011 16:43:07 +0530
From:	viresh kumar <viresh.kumar@...com>
To:	Jack Stone <jwjstone@...tmail.fm>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kernel/async.c: fixing compilation warnings

On 01/14/2011 02:48 PM, Jack Stone wrote:
> "Viresh Kumar" <viresh.kumar@...com> wrote:
> 
>> 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 <viresh.kumar@...com>
>> ---
>> kernel/async.c |    4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/kernel/async.c b/kernel/async.c
>> index cd9dbb9..9c06931 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 calltime = {0}, delta, rettime;
> 
> I think this is a false positive so we can use uninitalized_var().
> 
>> 	/* 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 starttime = {0}, delta, endtime;
>>
> 
> Same for this one.
> 

I will resend it with suggested changes.

--
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ