From: Takashi Iwai <tiwai@suse.de>
To: Sasha Levin <sashal@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Richard Fitzgerald <rf@opensource.cirrus.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: hda: Remove duplicate cmedia entries in codecs Makefile
Date: Mon, 27 Apr 2026 14:23:19 +0200 [thread overview]
Message-ID: <87a4uozj60.wl-tiwai@suse.de> (raw)
In-Reply-To: <20260426000327.56079-1-sashal@kernel.org>
On Sun, 26 Apr 2026 02:03:27 +0200,
Sasha Levin wrote:
>
> kconfiglint reports:
>
> M004: 'snd-hda-codec-cmedia-y' assigned with ':=' but was already
> assigned at line 5; previous value is overwritten
>
> sound/hda/codecs/Makefile contains duplicate entries for the C-Media
> codec driver ― both the composite module definition and the obj-* build
> target appear twice:
>
> Line 5: snd-hda-codec-cmedia-y := cmedia.o
> Line 10: snd-hda-codec-cmedia-y := cmedia.o (duplicate)
> Line 24: obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o
> Line 29: obj-$(CONFIG_SND_HDA_CODEC_CMEDIA) += snd-hda-codec-cmedia.o (duplicate)
>
> This file was created by commit 6014e9021b28 ("ALSA: hda: Move codec
> drivers into sound/hda/codecs directory") which
> moved codec drivers from sound/pci/hda/ to sound/hda/codecs/. In that
> initial file, cmedia appeared once in each section.
>
> Immediately after, commit aeeb85f26c3b ("ALSA: hda: Split Realtek
> HD-audio codec driver") reordered the entries and
> inserted cmedia at new positions near the top of each section, as part
> of splitting out the Realtek driver. However, the original cmedia entries
> were not removed during this reordering, creating duplicates of both
> lines. The second assignment harmlessly overwrites the first with the
> same value, and the second obj-* line causes the module to be listed
> twice ― neither causes a build failure, but both are dead code.
>
> Remove the duplicate entries (second occurrence of each).
>
> Assisted-by: Claude:claude-opus-4-6 kconfiglint
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Applied now. Thanks.
Takashi
prev parent reply other threads:[~2026-04-27 12:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-26 0:03 [PATCH] ALSA: hda: Remove duplicate cmedia entries in codecs Makefile Sasha Levin
2026-04-27 12:23 ` 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=87a4uozj60.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=rf@opensource.cirrus.com \
--cc=sashal@kernel.org \
--cc=tiwai@suse.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