Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2644551lqz; Wed, 3 Apr 2024 04:40:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRyfiUU2nxZ4QcypKXxsMXOozPILvS5lVsY/jFq5NZBnd7AdAH9kaYE/Np/EnYQQKDUmbUBa4lIW921lbuLTZLDKCOjyc/ktB+zs+/QA== X-Google-Smtp-Source: AGHT+IG09mOPt0zvzLbk8OPplhL909ZMiB+ahluUn4LfN4B6IJekMBOMdyLUtZ6ZFP1V2tsOki2r X-Received: by 2002:a17:902:dacd:b0:1e0:11a4:30e0 with SMTP id q13-20020a170902dacd00b001e011a430e0mr20504757plx.19.1712144427238; Wed, 03 Apr 2024 04:40:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712144427; cv=pass; d=google.com; s=arc-20160816; b=MP9Gq/DDxJIZrBXdliEBEhvV1EFFDgQRCc8wWXSFPGDxb0KyGk8FhKqpxFS6hj/Sln Fcq+Ao8Mf9TU2T+cgB7KLTcoh/rc4VM9lJvBvdO8FupkZXUTo/bHnCQaPaUlqUqWXY3T srzQwhs+hxs4+vhM+/3mizl6NFXgeqZuvj+q5NBHmCfFdJdYng3Wsn4wtkUsLcCT8UqV XeQ9wu20KgPNghmbi4nwRdold5RrX6dShURy6eAciUing0+ljXu7pnMxBbwYDOf8xlvL CVq+0Ef3NQKeY+H0JaZsks1uhrwZw9MLsntrBxd5hx0zKaZjT9l8qMR8NoVEiRvpjdOQ J3Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=pmN9FWxWfo4FfQqYYNRGmlgSAPDgsVfTz5LUGIcfzDQ=; fh=Uf/vLnwXrQ3rBjNUduXWYojClJrHxyUeAifx3Y5hQeg=; b=O9jpIrvkMswZe3Fc4GUS+bjYAEw2/Y0zThIQkOmZZGXe09ctBPdeTXyTMSodFQAb3c cGx/fiRcELoenMawvlzq0TOhJ9EyIdC2W4w3Lzvj+fgbmGRqQJBAxRTaBZm2L73NcbOv /7JBAAzN0boF+S8Pus69fuPfScT/mAYUxU/u4Yi94KrT5YwA0iWbL3MCe8Jnq0VJgnK7 MRPoqnWyURt/P/z6YgB2H7FqUYjoVKulnTfGrK03r+KskQAyfgCcejddan8/lqEH6yrL E+RAfI+zJhfbxWCw89tVYFH8a0nvUQX+p7ZBoWRUBkcGV5RdfIx3IGeKpXsUTYRCJ4bL SChw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=by+5wRSR; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-129632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b11-20020a170902650b00b001e27b4e17d7si2517929plk.651.2024.04.03.04.40.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 04:40:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=by+5wRSR; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-129632-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129632-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 18D24B25938 for ; Wed, 3 Apr 2024 11:03:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA1E21419B0; Wed, 3 Apr 2024 11:03:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="by+5wRSR" Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16EBC139CEF; Wed, 3 Apr 2024 11:03:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712142221; cv=none; b=JiWj9HmazYYGctgbpyQZJm07zuKTD3t1sEexzNspRQ7AbQiU+LOhURhEIoNg5ZlzXcjMBfkZZO+FItNRXVeleNbgL6RRDPgdMDYtcZDw4OVYn3yLQYbjGI2xC8aK8Xi9zUPqaGZxE+fRphpxvAhFvXuLxEQ94z7x0qH3grkYe68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712142221; c=relaxed/simple; bh=4yTkXgWSnlXEICWMvYYyIkFxasxVZm6D0444mIba/B4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cMesQhP0INig+YPthRkSFo8FEVlDbZJmN0D2sX21sRo5pI1/SUj2bTAVuv5+r24bUE9DZpn+9UwJJrfEXyuYHu5wDDblvsfxGIATy/WBHeEWKMB4zKpLd/wfVxcErFyfTlXPUlEmYPYZy2H0wzYuspcPEjmDg9rV4Hc9S53MFPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=by+5wRSR; arc=none smtp.client-ip=217.70.183.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id B77E01C0007; Wed, 3 Apr 2024 11:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712142212; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pmN9FWxWfo4FfQqYYNRGmlgSAPDgsVfTz5LUGIcfzDQ=; b=by+5wRSRnfJBKDqqT66tYSQAcqlC8jXmhK7AzBtk2vv4AUnq7YYuDTvIUIJdh5daYIqieP heCDmFhWKoFxlMnh19pzhI81MEM6mWeLqCzOu16T6mCHLYzbXc0qEZgBTwWyCod4NdXG7m 3unZnbH7b7X1KmUcZDtp/q0AtaNy9UFqoPOwU1Z31yr5dsM3+zE2OvY6hf3Jjc7MyE4nwO 2/aTKojuEC9Dknssr5ODHFssKwAOMjjDpJHHeyZ2xUVsCoR1XeLsaBTYFsYUprGMgISSHt BvTyWiQQ77Ey+hDjYdkTK6DGct5sUxSJk3jYdB+Y7LbAq0hEnfRY0IDYV8DWig== From: Luca Ceresoli Date: Wed, 03 Apr 2024 13:03:18 +0200 Subject: [PATCH v2 1/2] ASoC: codecs: rk3308: fix "defined but not used" warning on !OF Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240403-rk3308-audio-codec-fix-warning-v2-1-816bae4c1dc5@bootlin.com> References: <20240403-rk3308-audio-codec-fix-warning-v2-0-816bae4c1dc5@bootlin.com> In-Reply-To: <20240403-rk3308-audio-codec-fix-warning-v2-0-816bae4c1dc5@bootlin.com> To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: Thomas Petazzoni , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Ceresoli , kernel test robot X-Mailer: b4 0.13.0 X-GND-Sasl: luca.ceresoli@bootlin.com Building with CONFIG_OF=n triggers: warning: 'rk3308_codec_of_match' defined but not used [-Wunused-const-variable=] warning: unused variable 'rk3308_codec_of_match' [-Wunused-const-variable] Even though OF is needed for probing, fix by declaring as __maybe_unused to still allow building on non-OF configurations for build testing. Fixes: 9fdd7b45da18 ("arm64: defconfig: enable Rockchip RK3308 internal audio codec driver") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202403271905.BYbGJiPi-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202403271907.0z0uuG5I-lkp@intel.com/ Signed-off-by: Luca Ceresoli --- sound/soc/codecs/rk3308_codec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rk3308_codec.c b/sound/soc/codecs/rk3308_codec.c index 9d3e4691a7b5..74c3836995b1 100644 --- a/sound/soc/codecs/rk3308_codec.c +++ b/sound/soc/codecs/rk3308_codec.c @@ -953,7 +953,7 @@ static int rk3308_codec_platform_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id rk3308_codec_of_match[] = { +static const struct of_device_id __maybe_unused rk3308_codec_of_match[] = { { .compatible = "rockchip,rk3308-codec", }, {}, }; -- 2.34.1