18 Apr
2011
18 Apr
'11
12:30 p.m.
On Sun, Apr 17, 2011 at 11:37:34PM -0700, Patrick Lai wrote:
I got a compiler warning soc-core.c: In function 'snd_soc_instantiate_cards' warning: 'compress_type' may be used uninitialized in this function. In reality, compress_type is defined as local variable in snd_soc_instantiate_card().
Please *always* CC relevant maintainers on mails if you want them to be read.
My kernel version is 2.6.38. Has the warning being addressed in 2.6.39 or 2.6.40 patches? If not, after tracing through the code, I think the fix should look like the following:
This is the sort of question that can easily be answered by building the code... I believe it's not an issue with current code but I've not looked myself.