Fix GCC4 warning: 'current_time.tv_sec &
Subsystems (2)
PATCH 1/1 Fix GCC4 warning: 'current_time.tv_sec &
The timeval current_time is conditionally initialized and unconditionally used. Moving the call to do_gettimeofday() above the #if directive eliminates the possibility of using current_time uninitialized.
drivers/net/wireless/prism54/isl_38xx.c renamed from drivers/net/wireless/prism54/isl_38xx.c.orig +3 -1
@@ -122,8 +122,10 @@ isl38xx_trigger_device(int asleep, void/* check whether the device is in power save mode */ if (asleep) {/* device is in powersave, trigger the device for wakeup */ -#if VERBOSE >SHOW_ERROR_MESSAGES +do_gettimeofday (¤t_time); + +#if VERBOSE >SHOW_ERROR_MESSAGES DEBUG (SHOW_TRACING ,"%08li.%08li Device wakeup triggered\n" , current_time.tv_sec, (long )current_time.tv_usec);#endif
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 28 lines · Jesse Millan
------------------------------------------------------------------------
The timeval
current_timeis conditionally initialized and unconditionally used. Moving the call todo_gettimeofday()above the #if directive eliminates the possibility of usingcurrent_timeuninitialized.Signed-off-by Jesse Millan <[email protected]>drivers/net/wireless/prism54/isl_38xx.c renamed from drivers/net/wireless/prism54/isl_38xx.c.orig +3
-2@@ -122,8 +122,10 @@ isl38xx_trigger_device(int asleep, void/* check whether the device is in power save mode */ if (asleep) {/* device is in powersave, trigger the device for wakeup */ -#if VERBOSE >SHOW_ERROR_MESSAGES +do_gettimeofday (¤t_time); + +#if VERBOSE >SHOW_ERROR_MESSAGES DEBUG (SHOW_TRACING ,"%08li.%08li Device wakeup triggered\n" , current_time.tv_sec, (long )current_time.tv_usec);#endif ------------------------------------------------------------------------
Quoted 4 lines
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Disregard this patch. This was fixed by pulling the last DEBUG above the #endif directive as of git10.
Signature · 12 lines
Jesse Millan CNS Unix Team Portland State University Phone: (503) 725-9151 Mobile: (503) 453-0748 GPG key: www.system-calls.com/gpg.php grep --recursive --ignore-case 'SHOULD WORK' /usr/src/linux/* | wc _______________________________________________ Kernel-janitors mailing list [email protected] http://lists.osdl.org/mailman/listinfo/kernel-janitors