Re: PROBLEM: kernel 2.6.22.9-cfs-v22 compile warnings

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Konstantin Oshovskij <limulus@...>
Cc: <linux-kernel@...>
Date: Monday, October 8, 2007 - 2:11 pm

Hi Konstantin,

On Mon, Oct 08, 2007 at 03:34:24PM +0300, Konstantin Oshovskij wrote:

The "may be used uninitialized" errors are false positives from GCC. Mostly
this happens from code paths like: 

int x, y; 
set_method(&x); 
y = x;


Hidden by uninitialized_var() macro in latest pull. This macro silence
the gcc by using the trick: #define uninitialized_var(x) x = x


Already hidden now by the uninitialized_var() macro.


pci_find_slot is using pci_find_device on purpose here (equivalent to the
safe pci_get_slot method).


False positives from function definition and from the innocent EXPORT_SYMBOL
macro (It makes the method available to kernel modules).

Regards,

-- 
Ahmed S. Darwish
HomePage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PROBLEM: kernel 2.6.22.9-cfs-v22 compile warnings, Konstantin Oshovskij, (Mon Oct 8, 8:34 am)
Re: PROBLEM: kernel 2.6.22.9-cfs-v22 compile warnings, Ahmed S. Darwish, (Mon Oct 8, 2:11 pm)