[alsa-devel] sound/pci/hda/patch_sigmatel.c:2260:26: sparse: obsolete array initializer, use C99 syntax

Takashi Iwai tiwai at suse.de
Tue Jan 15 11:28:00 CET 2013


At Tue, 15 Jan 2013 17:57:00 +0800,
Fengguang Wu wrote:
> 
> Hi Takashi,
> 
> FYI, there are new sparse warnings show up in
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable.git master
> head:   629965377895ebe6a546184911d588fd29596dc8
> commit: 8018ee4e722f6c408d475262b54dc8a73fdd349f ALSA: hda - Use standard fixup table for IDT92HD71Bxx
> date:   2 hours ago
> 
> >> sound/pci/hda/patch_sigmatel.c:2260:26: sparse: obsolete array initializer, use C99 syntax
>    sound/pci/hda/patch_sigmatel.c:2266:26: sparse: obsolete array initializer, use C99 syntax
> 
> vim +2260 sound/pci/hda/patch_sigmatel.c
> 
> 8018ee4e Takashi Iwai 2013-01-14  2249  static const struct hda_fixup stac92hd71bxx_fixups[] = {
> 8018ee4e Takashi Iwai 2013-01-14  2250  	[STAC_92HD71BXX_REF] = {
> 8018ee4e Takashi Iwai 2013-01-14  2251  		.type = HDA_FIXUP_FUNC,
> 8018ee4e Takashi Iwai 2013-01-14  2252  		.v.func = stac92hd71bxx_fixup_ref,
> 8018ee4e Takashi Iwai 2013-01-14  2253  	},
> 8018ee4e Takashi Iwai 2013-01-14  2254  	[STAC_DELL_M4_1] = {
> 8018ee4e Takashi Iwai 2013-01-14  2255  		.type = HDA_FIXUP_PINS,
> 8018ee4e Takashi Iwai 2013-01-14  2256  		.v.pins = dell_m4_1_pin_configs,
> 8018ee4e Takashi Iwai 2013-01-14  2257  		.chained = true,
> 8018ee4e Takashi Iwai 2013-01-14  2258  		.chain_id = STAC_92HD71BXX_NO_SMUX,
> 8018ee4e Takashi Iwai 2013-01-14  2259  	},
> 8018ee4e Takashi Iwai 2013-01-14 @2260  	[STAC_DELL_M4_2] {

Thanks, these are obvious typos.  Fixed now.
It's interesting that this is still valid in C syntax...


Takashi


More information about the Alsa-devel mailing list