Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp208431lqz; Fri, 29 Mar 2024 13:45:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6B9iURx6fhwDBXiW6gLa7qZKaubcN9fk5VYELfg7FVo24XhAFiTaxspH3mKd5ucG5KiMUhcmot2rcrpIicu3pQRfBcesjfTgpxWnizg== X-Google-Smtp-Source: AGHT+IHTq0uKxKJebOp0yGxJOuXxm+U8fujVxbpgVDS2BTuhmKnakNc1MQFQrMUI75K/prBMO2kL X-Received: by 2002:a05:6359:5a96:b0:17b:5661:5e2b with SMTP id mx22-20020a0563595a9600b0017b56615e2bmr3840707rwb.18.1711745119814; Fri, 29 Mar 2024 13:45:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711745119; cv=pass; d=google.com; s=arc-20160816; b=k9Rlsi79vxzsszuMzfLxNj22CI5WUueY8D5dyH5MpSZX6BAikaM2N1Dq77COonzdTZ e7Sq3O0iiKKQS5VZa3SVMb/dIiFNGzJ4L049vYz35QR9kOTrtXa74g8/zZtDKXAFFfRD o9mAE7JF4qG+9Bwso98dTIK2A7DZybbQQirUHMKCXVY/I1fOE2tmqyyMNRBmA2r5JL/O nzfRUnD8wzbBthIFX/V+sL64f9M61zwYQx3QB6nQndyVunM0CFj476SY7sh5QxYdb0Gw G4vhEXkxEDltwLb3Y6lv2os7FVnqyzPQYeL5e1dwMU0vsJI0MOHQazvrqibdwnJGS8Ew UtDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=2ob7oexU0WPFKtD5q27b6YgS6moQs0+/GXcEyW5ksS0=; fh=4pvLIILsAgCHdyPELURPYJhTSrkXo4eZwniFc/mw7/E=; b=tmKowrUzrACw+PWpLe/+W/zixoJ9l1P3GDB9ECgCJGk7I+6slAhHrj2D7QGW8BiGr+ VzEL+1G1SVU2HqIFmyZMgWTME2MggNpVydZFVEfbJ4z5kfZlTcycWzDx2NIVL4z8bjvR i7NWByakQxOkSfUBPArgjlFMEyRmXsRVlsJ3xr0TAWa1tKI+n3WWQIBdTNao0jVl7dWz dzsAPfY2JdwDRDYHZpBbUKpla112K6afIw5EWyUpI5KlZK4oU9Onkdg/4glKQzOxapSU vdDbwy2qeWALeoH4TrwrgaaJt127rz1ZzveLFddBYwZOfzzSrHx0xvfxn4eoCEJKDpfm SE9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=m8gmbQwA; 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-125400-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s2-20020a635242000000b005dbe38b2cfdsi4295079pgl.494.2024.03.29.13.45.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 13:45:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125400-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=m8gmbQwA; 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-125400-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125400-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D31E2284039 for ; Fri, 29 Mar 2024 20:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46B9E6AFAE; Fri, 29 Mar 2024 20:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="m8gmbQwA" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 DFCCE225A8; Fri, 29 Mar 2024 20:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711745114; cv=none; b=gcVc9bxNdTNxL+VjkAwh1uy0RJ+lslmvCyEcmebaDePNC24aKMYE2+3PZn/0wc/ALnA2Fg07SOUYVtkzRKUmL/GlqNsjxBJcpOLLEtvmuaPaxQj+p6JrrQG6Cfp9ScelAowpgSG8VhLrRgnbqfM4gXR7zjIaVe68PijVgjP3/vI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711745114; c=relaxed/simple; bh=H/zfcDmDQXOBoDmRr5JMfKATjBOoYVT6ZhXGvrzN7JI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=rEpMiIpRun2CC+eDc83429XyHMtq/2pd7VrsY9Du1ipoAfQts2ktl8O7/o2YKlxHSZBZPI7wdXm/WLy4usyEytRZ5gV+3YsXnNNnhgDJ7oZ0hwlhGVdWyYWhGuPZEPfU8hMVCtXrlh56OSFnY0KJQwB0ML2oBarX6/UqmpQ0nss= 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=m8gmbQwA; arc=none smtp.client-ip=217.70.183.198 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 D0D97C0005; Fri, 29 Mar 2024 20:45:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711745107; 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; bh=2ob7oexU0WPFKtD5q27b6YgS6moQs0+/GXcEyW5ksS0=; b=m8gmbQwADJ5OSc1wtL/EzI2JAcNXoG9SjWtLxhIM8dIic5Eff7C+KMnG+TADUJN4HlBKSi syk9AmWJK9UcYABy9ULe/us068ab2tLew6y/dSVZDZc33fwP8jKBNsdv30BcsZHdgpTmH7 p9jIsDFnmYixZBnzu6jUIY+pUEaUTKgwvfxZvR7mggZfYHijzYmD8M7q3xFItynQYDBzqc t2ZnPBliShNJIAn2LhXH6O9TViesw6za1Bm7I9MzPp8KI8TZjmS8OQLrW0O1+8H2s1vYwL e0KibT/Py8FNRu6AUtlip1ri+buWtQeELOFaniO1D9jKpAd2Q7u5wMtZtYc8Pw== From: Luca Ceresoli Date: Fri, 29 Mar 2024 21:44:47 +0100 Subject: [PATCH] ASoC: codecs: rk3308: add dependency 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: <20240329-rk3308-audio-codec-fix-warning-v1-1-b9d177fcd6c9@bootlin.com> X-B4-Tracking: v=1; b=H4sIAD4oB2YC/x2NywqDMBAAf0X23IWYVKv9Fekhj1WXQiIb1ELw3 xs8DgMzBTIJU4Z3U0Do4MwpVmgfDfjVxoWQQ2XQSj+V0SPK1xg1oN0DJ/QpkMeZf3haiRwX7Fr nupcmF8YeamQTqvoeTJ/r+gMib8qRcAAAAA== To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Heiko Stuebner Cc: Thomas Petazzoni , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot , Luca Ceresoli X-Mailer: b4 0.13.0 X-GND-Sasl: luca.ceresoli@bootlin.com This driver is probed via device tree only, so depend on OF. Also remove the unneeded of_match_ptr(). Fixes reported warnings: warning: 'rk3308_codec_of_match' defined but not used [-Wunused-const-variable=] warning: unused variable 'rk3308_codec_of_match' [-Wunused-const-variable] 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/Kconfig | 1 + sound/soc/codecs/rk3308_codec.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig index 1c9d671a9848..7ee6c085bbc9 100644 --- a/sound/soc/codecs/Kconfig +++ b/sound/soc/codecs/Kconfig @@ -1403,6 +1403,7 @@ config SND_SOC_PEB2466 config SND_SOC_RK3308 tristate "Rockchip RK3308 audio CODEC" + depends on OF select REGMAP_MMIO help This is a device driver for the audio codec embedded in the diff --git a/sound/soc/codecs/rk3308_codec.c b/sound/soc/codecs/rk3308_codec.c index 9d3e4691a7b5..6b1cb92997b4 100644 --- a/sound/soc/codecs/rk3308_codec.c +++ b/sound/soc/codecs/rk3308_codec.c @@ -962,7 +962,7 @@ MODULE_DEVICE_TABLE(of, rk3308_codec_of_match); static struct platform_driver rk3308_codec_driver = { .driver = { .name = "rk3308-acodec", - .of_match_table = of_match_ptr(rk3308_codec_of_match), + .of_match_table = rk3308_codec_of_match, }, .probe = rk3308_codec_platform_probe, }; --- base-commit: 534a5adb26b1924542f55643718a4b5ae601a4e5 change-id: 20240329-rk3308-audio-codec-fix-warning-51bb572ebd96 Best regards, -- Luca Ceresoli