From patchwork Fri Apr 7 11:55:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 13204716 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 682A2C6FD1D for ; Fri, 7 Apr 2023 11:57:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9JNImNMAbYLpawOhmKFrb4mPrrtHQrrG/Th39Oyw/cc=; b=ITvsDADNqYF9cT dfn5Bs1WlsMGy7diJWUcJtuK8dEAQPy2mu2rxzSC31c0CN493j7eai3z4Pm6l71xGmtw7Z0+Ig+t7 W+IpVDeHmD4/BoEjU1Mk9wW+14VY+6mwwHQJsEeL3ofBzamlvQJWVomM5mBXYwRnRyw/rPvOD9/Cv s66ob2RT8Ce6HbrX2KfPMTXH7sV2WkziD6GUy6qN3mkJDJyoHSbtrMVpfKrItt6z/1zRR4rr/xrDt kN1BLHvb4YlVZGY+WUI26YNqMJyvJO3g/P7s+QlPKKshPpApsjXNq1posmPLWqUcwQZw9VnyYBGoB uirzmbWt2HWwxN+WldwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pkkhK-00A84l-35; Fri, 07 Apr 2023 11:56:06 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pkkhH-00A83t-0K for linux-arm-kernel@lists.infradead.org; Fri, 07 Apr 2023 11:56:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680868558; 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=n4yjwe4G2G9/env2LGiwcE/Ce2F1TWlNc2OcCX0hL4A=; b=E3U7Wh7ECWyrUkS6D/zbhCF147KS4jscbnVtz3mLXfthHIQSMRR6rV2zJVe3e9p8SYknAv GdXcUU1LZWBhjRKm/Bmcqb3OHP8rdAayLynWLjm8qNRoyJrUn4pFWwTq5KU+/jvCk4eYyT L+zRsZKsNjA3HRNIHphkSo0D+btH8Z0= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-230-ngT2UnZDNdeo0O_-Vcc-ug-1; Fri, 07 Apr 2023 07:55:57 -0400 X-MC-Unique: ngT2UnZDNdeo0O_-Vcc-ug-1 Received: by mail-qt1-f200.google.com with SMTP id e4-20020a05622a110400b003e4e915a164so24261443qty.4 for ; Fri, 07 Apr 2023 04:55:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680868557; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n4yjwe4G2G9/env2LGiwcE/Ce2F1TWlNc2OcCX0hL4A=; b=jeAoWU18qChvw7O05LRvBEP6Ol+bDuKtaTyiq/ZLT/R+CfY+e5+ApdGPgxAdGB28ve at9EGkoIqLUJf+4fabqltU04E2ojw9AnEQE34PbL4exPBRA0uhPEyCXEqfqQayY2AJK6 5vaP6FaO66riwEkmFeFY2wisFpGZ59aqOfs6QIGDALle454NL9cTzVU7ewo3IEH+HtXi bhI5PXkMe/rMcPjc8qXjzNZUX6wF3rFFA4Uj4rbmfoa1+9yb1SDyGl9TFeaUmRv5Sugf uLn3CKSTfJeGRSdi+7x3GGnQy/8jySFpEjnT/L9pWz2AtDemE0htbb557jndAg4BcY9s z80Q== X-Gm-Message-State: AAQBX9fY1vYePwn2IT6uo6gR5Fx3kb6NKzihrbyY/BwMACt85l940jWP 6lsjf/QfuFc2uRbRWbU9Ge/BBeDSVp2HdWBKDx67dADfjg8HzitceCsezfZfgjtUDlZ0jip/jjh 1zenvVUdJ6S/+V13vdMXWp+Nv+ZSexV93ev4= X-Received: by 2002:a05:622a:1646:b0:3bf:b70b:7804 with SMTP id y6-20020a05622a164600b003bfb70b7804mr3553529qtj.25.1680868556857; Fri, 07 Apr 2023 04:55:56 -0700 (PDT) X-Google-Smtp-Source: AKy350bl0Z3EzCJjIcLXRO1sAvzdukxxqrzrxNB4Iggt9a8A/nFDAbH/D/tViLjUBbsmcHprRWWaUQ== X-Received: by 2002:a05:622a:1646:b0:3bf:b70b:7804 with SMTP id y6-20020a05622a164600b003bfb70b7804mr3553498qtj.25.1680868556613; Fri, 07 Apr 2023 04:55:56 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id t186-20020a3746c3000000b00746ae84ea6csm1256321qka.3.2023.04.07.04.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 04:55:56 -0700 (PDT) From: Tom Rix To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, colin.i.king@gmail.com, fshao@chromium.org, jiaxin.yu@mediatek.com, allen-kh.cheng@mediatek.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Tom Rix Subject: [PATCH] ASoC: mediatek: mt8186: set variable aud_pinctrl to static Date: Fri, 7 Apr 2023 07:55:53 -0400 Message-Id: <20230407115553.1968111-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230407_045603_250054_C58EBF38 X-CRM114-Status: GOOD ( 11.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org smatch reports sound/soc/mediatek/mt8186/mt8186-afe-gpio.c:14:16: warning: symbol 'aud_pinctrl' was not declared. Should it be static? This variable is only used in one file so should be static. Signed-off-by: Tom Rix --- sound/soc/mediatek/mt8186/mt8186-afe-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c b/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c index 20b9f5d810ec..f12e91cc4fcf 100644 --- a/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c +++ b/sound/soc/mediatek/mt8186/mt8186-afe-gpio.c @@ -11,7 +11,7 @@ #include "mt8186-afe-common.h" #include "mt8186-afe-gpio.h" -struct pinctrl *aud_pinctrl; +static struct pinctrl *aud_pinctrl; enum mt8186_afe_gpio { MT8186_AFE_GPIO_CLK_MOSI_OFF,