lkml.org 
[lkml]   [2013]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: posix_cpu_timer: initialize "now" variable
From
2013/4/4 Arnd Bergmann <arnd@arndb.de>:
> Patch 6d0e025 "posix_cpu_timer: consolidate expiry time type" in linux-next
> introduces a new compiler warning:
>
> kernel/posix-cpu-timers.c: In function 'posix_cpu_timer_schedule':
> kernel/posix-cpu-timers.c:1127:19: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized]
> clear_dead_task(timer, now);
>
> As far as I can tell, that warning is about an actual bug an not
> a false positive, as that variable is clearly never initialized
> when it gets used in line 1127.
>
> Here is a patch that makes the warning go away for me, no idea if this is
> the right solution or not.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

I posted a fix two days ago: https://lkml.org/lkml/2013/3/30/63

Thanks.


\
 
 \ /
  Last update: 2013-04-04 16:42    [W:0.029 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site