lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230726070648.700754-1-mengyingkun@loongson.cn>
Date:   Wed, 26 Jul 2023 15:06:48 +0800
From:   YingKun Meng <mengyingkun@...ngson.cn>
To:     broonie@...nel.org, lgirdwood@...il.com
Cc:     krzysztof.kozlowski@...aro.org, linux-kernel@...r.kernel.org,
        loongarch@...ts.linux.dev, loongson-kernel@...ts.loongnix.cn,
        YingKun Meng <mengyingkun@...ngson.cn>,
        kernel test robot <lkp@...el.com>
Subject: [PATCH] ASoC: loongson: mark OF related data as maybe unused

The ASoC Sound Card driver can be compile tested with !CONFIG_OF
making 'loongson_asoc_dt_ids' unused:

sound/soc/loongson/loongson_card.c:200:34: warning: unused variable 'loongson_asoc_dt_ids' [-Wunused-const-variable]

Here we solve it in the same way as [1].

[1] https://lore.kernel.org/all/20201125164452.89239-1-krzk@kernel.org/

Reported-by: kernel test robot <lkp@...el.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307242008.xqdjgk04-lkp@intel.com
Fixes: d24028606e76 ("ASoC: loongson: Add Loongson ASoC Sound Card Support")
Signed-off-by: YingKun Meng <mengyingkun@...ngson.cn>
---
 sound/soc/loongson/loongson_card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/loongson/loongson_card.c b/sound/soc/loongson/loongson_card.c
index 9ded16329747..7dd7adc13484 100644
--- a/sound/soc/loongson/loongson_card.c
+++ b/sound/soc/loongson/loongson_card.c
@@ -197,7 +197,7 @@ static int loongson_asoc_card_probe(struct platform_device *pdev)
 	return ret;
 }
 
-static const struct of_device_id loongson_asoc_dt_ids[] = {
+static const struct of_device_id loongson_asoc_dt_ids[] __maybe_unused = {
 	{ .compatible = "loongson,ls-audio-card" },
 	{ /* sentinel */ },
 };
-- 
2.33.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ