Re: [PATCH -tip] x86: kvm/paging_tmpl.h intialize the variable beforeusing it

From: Avi Kivity
Date: Tue May 26 2009 - 07:46:01 EST


Ingo Molnar wrote:



It's a false alarm. Isn't there a macro to shut up the warning?

there's uninitialized_var(), but that will shut up the warning and any _correct_ future warning - so it's dangerous. Initialize it to NULL and be done with it? We dont want stray warnings in the kernel.

Makes sense, so I've applied the patch.

--
error compiling committee.c: too many arguments to function

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