Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp165858lqe; Thu, 4 Apr 2024 03:07:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNzkwgtvvwEyFmj2kOwH7TaMhytjSc85ZUwzLTFyu4N2/vgXBOow6b82qLsuYUOB/E89u1Yve2oguK+UNW/PLotQR0VPVbz9JcxL7V0A== X-Google-Smtp-Source: AGHT+IGUtqXvktm5Qy/i/lL5Y4W7xlVHUPBfVEsIy73vQyVHDPBOvZEjj4uSuCs3OZslv33ssJmz X-Received: by 2002:a17:907:1114:b0:a51:79c1:222d with SMTP id qu20-20020a170907111400b00a5179c1222dmr1137961ejb.12.1712225271781; Thu, 04 Apr 2024 03:07:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712225271; cv=pass; d=google.com; s=arc-20160816; b=CPBC8Gz3hlR9H1klOV0pvPmFTwEFDbEpcVDII/S2tL3RnWiYMi9DEb6PgkOuNt7D5s /R5GMwr3IczED3uEXlcNrLROXP3D+kH+nMKmA2As6TkLYQ8NWZQpMsyaOxQYD7POL7+f orh4iCIXVjcrBplXowU1OWm0MYFGRVgBaehmYJSxN7nI+uoz/hax19CacFTVOWmTxyLP rkZXoUzGiyRrd7BzA/gnsmUoOb1M+8VD7jsNg77J1+Yo4cfv0pHjR1rJzW1XMpw/pLOe IxQsuLF3nSAiOPBqqRijQbDm9IwytyVUkJ/TAHUeRq6gwwsdm7JcZtQ1/FYO9L6kcfmI A0vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=DB394TwmOy8XH6XoJMSgqSfiO6rKrw3L0L/CJ7jchG8=; fh=oNORgpwYYsdVdvOTqbqxJOmKSfBBUIGcLWVoKr2xWJU=; b=s7cP2HUimUNKqmzP92wUzGcNDhSnJVlkYLn6ej8/6U2kysbsv2ySsigQa19pZOw31a FTLN7a4J5fgx/QaL+Jw3yZ4q622va8qcRX7f3FftYoK0M8zufYl5iHD0uwTk28i2ZlJP tHCEo3FpsHCMXZpgl827TIG0B3eov8jeA9ukI05dz/SAma6rtyh4gyHMyKlx8Wende9N g3o/Aat2BhhrLPEfF724K0DCz0gwJ8LWLvlECPOSf9uTZMDmvjh4NRlyiMydJ4C8MzTs sgAXt+/rmgdtuXOnUPIzPfQXUFjhrO/G629AzZOL8EclhPDzHr31H4hifRxO+vWnNoVI 2L5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ubs7MaYc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131206-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t2-20020a170906a10200b00a469e80a73esi7571127ejy.1037.2024.04.04.03.07.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 03:07:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131206-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ubs7MaYc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-131206-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131206-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 91DE91F29FC7 for ; Thu, 4 Apr 2024 09:58:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9B1C74E0A; Thu, 4 Apr 2024 09:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ubs7MaYc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D5F8B745DC; Thu, 4 Apr 2024 09:58:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712224682; cv=none; b=Ma4HsQruuOYiDRK1swr4ZF9+ETcAMcCFOZbNiDmBnwS5NHnGd7g/XhJh/yNSnoWjjvzqS4oD7z4mbhEI4GGZpDkFqDCIij6R8vSyvb7nFfw3TloFpFTx+QBYI4HnkEMnRLyK6BEeShEpVd2Fno6dvwoQbEDy0NqXUGzMDrRylTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712224682; c=relaxed/simple; bh=17mEkdPvUNZVSmiPTDoEKoSyn8eH26ZHEB3ewee+IqE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rYns++U9AXJ6OUtucTb8Svhca6ZiyUtZpfBdCvX3S2rxvEEHaeS6/8+/fkgd4NI0l/bLKf+PPaYuMiM+61nxsONfUl6/YjtZAMjX3euPvBN1TKSrUeZAdmLX7vIX1NEJGUA62gVz9seB1uZQZte9Sa2eoErwVhNtSECYBF/QeL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ubs7MaYc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74D1DC433C7; Thu, 4 Apr 2024 09:57:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712224681; bh=17mEkdPvUNZVSmiPTDoEKoSyn8eH26ZHEB3ewee+IqE=; h=From:To:Cc:Subject:Date:From; b=Ubs7MaYcCK0B+GYrcVzd6Mebo9OgNtS07tIjn49URnebTW9cKbtwyzk6mUNagqIOG 0HY4NWzLUZRHWdoubYzcWeBcG40XDmJznomC3Fs5FCbpVvr5DfvO8WzxR5chZ1ora3 otO8abv7IcSfsJtUSLFZlv6p15J+j0XkZnttBjzN686qK2A+TUQEoynPzTRk3TBhFN vKiG7qGLG72GJQNd2XDWuMqm5ES8nCNAaOgqQgwqFRNxo69ymek4RGc84KzodczycA kT6laB/8cXwD2UkG1MpWo6iwGmvGlRbJbJD3KHQkDI8cABO+GM/gufsKgC9xvs/S51 PkV7csNFN1YOA== From: Arnd Bergmann To: Luca Ceresoli , Mark Brown Cc: Arnd Bergmann , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: codecs: rk3308: fix building without CONFIG_OF Date: Thu, 4 Apr 2024 11:57:34 +0200 Message-Id: <20240404095755.650364-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The newly added codec has an extraneous of_match_ptr() annotation for the ID table: sound/soc/codecs/rk3308_codec.c:956:34: error: 'rk3308_codec_of_match' defined but not used [-Werror=unused-const-variable=] 956 | static const struct of_device_id rk3308_codec_of_match[] = { Remove it to avoid introducing a warning when -Wunused-const-variable gets enabled by default: Fixes: 4ed0915f5bc4 ("ASoC: codecs: Add RK3308 internal audio codec driver") Signed-off-by: Arnd Bergmann --- 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..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, }; -- 2.39.2