From patchwork Sun Oct 23 07:44:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ban Tao X-Patchwork-Id: 7959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1536822wrr; Sun, 23 Oct 2022 02:11:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lq2eXR0/fjsQw6bG+ucOH60X4BdHWP4IRBzR/Gw1zuxKymL5Ht7KBXJkoFtHSJujivlNw X-Received: by 2002:a05:6402:538f:b0:444:c17b:1665 with SMTP id ew15-20020a056402538f00b00444c17b1665mr25953711edb.98.1666516312833; Sun, 23 Oct 2022 02:11:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666516312; cv=none; d=google.com; s=arc-20160816; b=LFfITnNyKJlActeu1bVOpuABWaT9AC6Pmf9L9SS5xSLegYzVj60uyQGBgQ8Ppcj0UU ayFBXa7CYjRxZz1u+P5CA+Rad9pNqc4Nl8+G9LCDuutv8jDUm//++rr0NyRPjCkkxVsb QX+hvB19wdmGYDlOIjB4D9MnWN8aSOyOnGC6ePHqxTWcDg4ftjAHXSuSfr9RS7b/b3nL n2NxjCIOCjx8qT2DaH8zlPnLZcewZUOY2MWEayGRhzo7I7dG/k5HCTpj4cRfKj2phgl3 /PYpSNrTwFph9e8Jhzg5uS+qFvF7GNx+5eh8go1mW1U2zVcJPXtZ3TiGPWTPshvCzhYR wH7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=Q+3XI07NIU0r0BcSpY4o4wAED1j8IMzL6p8JlqJ+P7M=; b=x00ZaFWYat6cSGSRGuZENnFXSIsvmTXBZ+HYlgpgZrI2BZVRSSLTxghP1jov6MKfXD IGWSb+z6wZ9I6wpIpzCPNK+R7PDOyEs3xB5PiaI6O3fw4FzLWw9VD/UgS47ZSXhUHKkt mNsiBxajcOYykMjI8IJD8/8mcPIz6O2TI5jir05ywdKLMnorLoGpdnt9Gh2endRz28J5 NB3ZrQJPxsC4dJINPJnWQbXd2cW/pwH0fKsXTgVauc2cWixQW6DApz6+y8Cr543ZNwEz H4+NgnlCTcaFDQSsQrai2YXBK57H4DDdPlKe5xuVaGjsDvtoa/sHKI37CaRSMRdzGI+V mClQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HNX7B3LX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s26-20020a056402037a00b00447b4fdc29fsi1419989edw.82.2022.10.23.02.11.06; Sun, 23 Oct 2022 02:11:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HNX7B3LX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbiJWHqM (ORCPT + 99 others); Sun, 23 Oct 2022 03:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229982AbiJWHqJ (ORCPT ); Sun, 23 Oct 2022 03:46:09 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 954AA6CD3E for ; Sun, 23 Oct 2022 00:46:04 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id h2so88552pgp.4 for ; Sun, 23 Oct 2022 00:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q+3XI07NIU0r0BcSpY4o4wAED1j8IMzL6p8JlqJ+P7M=; b=HNX7B3LX5uGls5yoQ/5rcdO3NyrtZTcsWkpJx9uEferAxFEMGahSk77KWsyjQqM081 SmHGfTKBcsKNRcnCMtbYzC8/QpkdGVvCB+DcTyYY5nzGGJMYLyY63doCjtrtagYKSqbQ 72KKKHZQvFXE3hErYtcA+0HNZoqNXtZfwFCWW3mzNxmOInHiyLd2jX9gK2eYWnHL56dY 6wUHiYGv02nGQ49T5B5Y4MEdC1rshkasUy6h29VDsZOXdecYgPtscpg17YkBPeLmj77x qV/SwnwvnB8CgsNWcl7X6G2uhmBG0gSJF8EqEQmVyrv389h15pcTgy83XkMOCb0cnIB8 DA+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q+3XI07NIU0r0BcSpY4o4wAED1j8IMzL6p8JlqJ+P7M=; b=gkfE+7b4KlqkCQRT/arxqCYtE6NuPvXVdpKrwWsFGgh36Bx4V7uu2E50JMbVq/KSUy Bk6z5zgFMZkd8QkvV6l9A5OD/4nx1uRYagQKX/cEHm3B9aLJhV1FESwDfziZv5VVT9r2 2I0fvnq7DuI3NuN7XWT39KVwBjmgAMETasxbzRoH68vlsTMuB3Iw0v4a+CSv2iP9Zidh gc4vesynkumHU39b8sS8DGkgnBiMmwbXAcNX6aRJX5XTJrvAKhIWRu0gR3/lUna04Rtm hApIeY0fP09BxzRSh6Vw7BWfJNF9di/o1tQ0YHdFOHZVE1dvJOswxKFEa26AeGH8652/ BEKw== X-Gm-Message-State: ACrzQf1PvDQlJv1J2vRlY7hllHDbLdNa44dhMAmvIolHBQx/2VBLGUxh UzDWZTfyBLqWojivikPGUVOTfhbUF8zwoE2IEw== X-Received: by 2002:a63:6505:0:b0:46e:d30b:8f9 with SMTP id z5-20020a636505000000b0046ed30b08f9mr6658694pgb.366.1666511164097; Sun, 23 Oct 2022 00:46:04 -0700 (PDT) Received: from localhost.localdomain ([121.34.154.42]) by smtp.gmail.com with ESMTPSA id ge12-20020a17090b0e0c00b0020aa1bd91e4sm4101976pjb.4.2022.10.23.00.46.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Oct 2022 00:46:03 -0700 (PDT) From: Ban Tao To: fengzheng923@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match Date: Sun, 23 Oct 2022 00:44:45 -0700 Message-Id: <1666511085-2748-1-git-send-email-fengzheng923@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747469009234909286?= X-GMAIL-MSGID: =?utf-8?q?1747469009234909286?= In configurations with CONFIG_OF=n, we get a harmless build warning: sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable 'sun50i_dmic_of_match' [-Wunused-const-variable] Signed-off-by: Ban Tao Reported-by: kernel test robot Acked-by: Jernej Skrabec --- v1->v2:Add "Acked-by" tag. --- sound/soc/sunxi/sun50i-dmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c index 86cff5a..62509cb 100644 --- a/sound/soc/sunxi/sun50i-dmic.c +++ b/sound/soc/sunxi/sun50i-dmic.c @@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = { static struct platform_driver sun50i_dmic_driver = { .driver = { .name = "sun50i-dmic", - .of_match_table = of_match_ptr(sun50i_dmic_of_match), + .of_match_table = sun50i_dmic_of_match, .pm = &sun50i_dmic_pm, }, .probe = sun50i_dmic_probe,