From nobody Sat Sep 21 13:59:57 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FE52C433FE for ; Thu, 20 Oct 2022 22:44:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230078AbiJTWos (ORCPT ); Thu, 20 Oct 2022 18:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbiJTWoR (ORCPT ); Thu, 20 Oct 2022 18:44:17 -0400 Received: from tartarus.angband.pl (tartarus.angband.pl [51.83.246.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17FE22C472 for ; Thu, 20 Oct 2022 15:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=angband.pl; s=tartarus; h=In-Reply-To:Subject:Date:To:From:Resent-To:Resent-Message-ID: Resent-Date:Resent-From:Sender:Reply-To:Message-ID:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Sender:Resent-Cc:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/vzjjUMvm1iD6dPYFRvooGGdAa5BvFtoRHD72sg2mYc=; b=CM07kka2mro8o2oKglgaan75+r ZlFQZm1cNyoEKErlot5Adc+GeENhxxov5kRMrsS7QOS3nJhGIHeqXeYwfM7KsHhKESZfOHx7X+HA+ 6HuM86nSgbf9Xxuhtb4dgumPkxmMuWZmhMLamehjRYIStO5RlouWuds+cJl1UZdg8tUI=; Received: from kilobyte by tartarus.angband.pl with local (Exim 4.94.2) (envelope-from ) id 1oleGM-009OYu-SI; Fri, 21 Oct 2022 00:43:42 +0200 From: Adam Borowski To: Matthias Brugger , Liam Girdwood , Mark Brown , Jiaxin Yu , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Wed, 14 Sep 2022 22:06:51 +0200 Subject: [PATCH 1/6] ASoC: mediatek: mt8186: fix an "unused" warning In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-Id: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This, and a whole bunch of referenced functions are not needed without CONFIG_OF. The warning makes the build fail under CONFIG_WERROR. Signed-off-by: Adam Borowski --- sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c | 2 +- sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c b/so= und/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c index cfca6bdee834..b15e97bd9d4d 100644 --- a/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c +++ b/sound/soc/mediatek/mt8186/mt8186-mt6366-da7219-max98357.c @@ -1000,7 +1000,7 @@ mt8186_mt6366_da7219_max98357_controls[] =3D { SOC_DAPM_PIN_SWITCH("HDMI1"), }; =20 -static struct snd_soc_card mt8186_mt6366_da7219_max98357_soc_card =3D { +static __maybe_unused struct snd_soc_card mt8186_mt6366_da7219_max98357_so= c_card =3D { .name =3D "mt8186_da7219_max98357", .owner =3D THIS_MODULE, .dai_link =3D mt8186_mt6366_da7219_max98357_dai_links, diff --git a/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c b/sou= nd/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c index 2414c5b77233..22ce2f849909 100644 --- a/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c +++ b/sound/soc/mediatek/mt8186/mt8186-mt6366-rt1019-rt5682s.c @@ -976,7 +976,7 @@ mt8186_mt6366_rt1019_rt5682s_controls[] =3D { SOC_DAPM_PIN_SWITCH("HDMI1"), }; =20 -static struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc_card =3D { +static __maybe_unused struct snd_soc_card mt8186_mt6366_rt1019_rt5682s_soc= _card =3D { .name =3D "mt8186_rt1019_rt5682s", .owner =3D THIS_MODULE, .dai_link =3D mt8186_mt6366_rt1019_rt5682s_dai_links, --=20 2.37.2.609.g9ff673ca1a