From: Takashi Iwai <tiwai@suse.de>
To: Lionel Debroux <lionel_debroux@yahoo.fr>
Cc: Jaroslav Kysela <perex@perex.cz>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
Kees Cook <kees.cook@canonical.com>,
Emese Revfy <re.emese@gmail.com>,
kernel-janitors@vger.kernel.org
Subject: Re: ac97: quiet make W=1 noise by initializing all fields of snd_ac97_codec_id_vendors and snd_ac97_codec_ids.
Date: Mon, 25 Jul 2011 12:54:29 +0200 [thread overview]
Message-ID: <s5hzkk2y6je.wl%tiwai@suse.de> (raw)
In-Reply-To: <788178.91280.qm@smtp129.mail.ukl.yahoo.com>
At Sun, 24 Jul 2011 11:40:56 +0200,
Lionel Debroux wrote:
>
> make W=1 bitterly complains about missing initializations in
> snd_ac97_codec_id_vendors and snd_ac97_codec_ids.
> Initialize the last field, to make the output of make W=1 more readable.
>
> Patch against current Linus tree.
If we change the whole table entries, it'd be better to use C99 style
init, e.g.
#define _CODEC(_id, _mask, _name) \
.id = _id, .mask = _mask, .name = _name
static const struct ac97_codec_id snd_ac97_codec_id_vendors[] = {
{ _CODEC(0x41445300, 0xffffff00, "Analog Devices"),},
...
static const struct ac97_codec_id snd_ac97_codec_ids[] = {
{ _CODEC(0x41445303, 0xffffffff, "AD1819"), .patch = patch_ad1819 },
...
{ _CODEC(0x53494c20, 0xffffffe0, "Si3036,8"), .patch = mpatch_si3036, \
.mpatch = mpatch_si3036, .flags = AC97_MODEM_PATCH },
...
thanks,
Takashi
prev parent reply other threads:[~2011-07-25 10:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-24 9:40 Lionel Debroux
2011-07-25 10:54 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hzkk2y6je.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=kees.cook@canonical.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lionel_debroux@yahoo.fr \
--cc=perex@perex.cz \
--cc=re.emese@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®