From patchwork Thu Apr 6 15:23:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 80328 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1124724vqo; Thu, 6 Apr 2023 08:47:45 -0700 (PDT) X-Google-Smtp-Source: AKy350Z6X5c4ucExkRrJW/zFDbxNHUzjFYwKSbAajSHYobX5+I0Z04XonjuEV/9k0iue+yiPCwfo X-Received: by 2002:a17:903:244c:b0:19e:2495:20d2 with SMTP id l12-20020a170903244c00b0019e249520d2mr13501103pls.30.1680796065595; Thu, 06 Apr 2023 08:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680796065; cv=none; d=google.com; s=arc-20160816; b=MbmEz1toCIuKHjJZUsko4wFy2skAKNS48jAzV/EFCBNQC+pLEvxa1tm+noRR6UKEEr 0P6uoiZB+TRfKhi1ySubck6Kycy/DslFQzP4+WvXdscycrJXIdUdGkjt6lVip5sAnoOg 9YFlIf6fmSLobDRRCIH2ZLpQJHnCihm9dIn89Iq03zr7rrnFx5JyWbss3jSKgSSZWpHc lEY/pwS36ZWqkZswogfkMHiHDnaJEovp1pEF0CuWjPpXQY3pvVycgerV3RV68Fmly39k k7lsMRzF9VycUuEYhLD2z0lNqNkIYbOjYfYj4nu5RerjUmN7naODL4bW5bmezeZ1HQoS OIog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Mb2Sx08sAZAB72OxlGRSKRYkFlVM9JheVxzU3a3tBgA=; b=sHqjegmI3kNgmB/+BeQXzl8FGb8CxFs+RehAJQGbAvpKhi7ZRuUfhI8uMEz+NtWaJF eHs7x2jq5SO8Ola2X9+H2CnYHjF8mOJZLWv1u7uo3U8HbZBBPpQcgq8VOgKhvOurQhmb 66YwVWej1UW62cVfwE+IDckEO3WLS3lTj7mrdBqdoqbF0h+yhoC2+W/WX6dwpiylPnGv jtESmc1+092LoRz0mOiW0x4VWciqpznnlDyU0pI3TSfwcFPqqoQpM8IW3RXdYwoFHJBy IISqsznd9q1qLOk7xP4OVNr5N3wpgEmqJ8NB7DCV5AdTdhWsJKsxrRnG2NqXLy0D+4yo uNRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P0uQDkqr; 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=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x64-20020a638643000000b0051334c90cbbsi1643715pgd.22.2023.04.06.08.47.18; Thu, 06 Apr 2023 08:47:45 -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=@redhat.com header.s=mimecast20190719 header.b=P0uQDkqr; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239233AbjDFPXx (ORCPT + 99 others); Thu, 6 Apr 2023 11:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238942AbjDFPXu (ORCPT ); Thu, 6 Apr 2023 11:23:50 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E35C455AE for ; Thu, 6 Apr 2023 08:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680794586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Mb2Sx08sAZAB72OxlGRSKRYkFlVM9JheVxzU3a3tBgA=; b=P0uQDkqr3X7mYHvRMYOE1kiifp1XxYN9s1Gdxn9pqOIyQ/Les+1OLg/DuR3LEwtRqbdFYM aUZPqFPnttGIvU9O4OrqbrZjVL5f7XmqEsTJhz5L4yW/MytfIRWfCF8zZ4H/DdFoP9AYW9 CsjYNbtcpF7olUmPx740g+zFU3V98TY= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-7-4TCrieihN6y8Li-gvztyog-1; Thu, 06 Apr 2023 11:23:04 -0400 X-MC-Unique: 4TCrieihN6y8Li-gvztyog-1 Received: by mail-qv1-f71.google.com with SMTP id f3-20020a0cc303000000b005c9966620daso17908964qvi.4 for ; Thu, 06 Apr 2023 08:23:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680794584; 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=Mb2Sx08sAZAB72OxlGRSKRYkFlVM9JheVxzU3a3tBgA=; b=P73MiZhX6bHoeVI6GxFDs9EiVQVrZ5Lws0Djq5SwJvPXZeZnPrPPgK1hJ8XbFV69F1 M6b1YXnYxHN9mOwBP1njuq3H1EX75kRhEKDdqiN2FB4JvZnlAOfwpXpuviIswqyVYouO xKC/rfIG5yjY7b2AxaL2Uj7yPgClqlF98kXYNXGXRf5H6uhHyeQpH1+EwmcXBSeI3mzK 4bgQz+xeIgrXm0n7+TZApC75i1KqOimgnFYTL4VZeaqGgeG+iTnUPx8JO4KO/zmBxwWS vtLaVF8D4Lc09XXRYlc0/eL6kBZsCsLPmScSLwb+6hnuCGAnhVoLhrhrQs5sD08tWIAd rDuA== X-Gm-Message-State: AAQBX9fyh9cpgNYS13NQw9tOIiLsyoxxfkaJWhCK9DzgFJMgdUs6rAXU igE0olJLB7jiUsmtGUcX4xGyPifSQ4reLQnHCPRLdFpbu+nUBiWjxPxu7tMySipaqqgz7Zg5lSr Lpka0JQN2065/BVcV7LsfL6G2O36MADzB X-Received: by 2002:a05:6214:27c8:b0:5e7:9e1b:b26d with SMTP id ge8-20020a05621427c800b005e79e1bb26dmr251053qvb.16.1680794584148; Thu, 06 Apr 2023 08:23:04 -0700 (PDT) X-Received: by 2002:a05:6214:27c8:b0:5e7:9e1b:b26d with SMTP id ge8-20020a05621427c800b005e79e1bb26dmr251020qvb.16.1680794583895; Thu, 06 Apr 2023 08:23:03 -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 da1-20020a05621408c100b005dd8b9345bcsm579903qvb.84.2023.04.06.08.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 08:23:03 -0700 (PDT) From: Tom Rix To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ryans.lee@analog.com, pierre-louis.bossart@linux.intel.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] ASoC: max98363: set varaiable soc_codec_dev_max98363 storage-class-specifier to static Date: Thu, 6 Apr 2023 11:23:00 -0400 Message-Id: <20230406152300.1954292-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1762442415264583669?= X-GMAIL-MSGID: =?utf-8?q?1762442415264583669?= smatch reports sound/soc/codecs/max98363.c:392:39: warning: symbol 'soc_codec_dev_max98363' 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/codecs/max98363.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c index 4585ebb1e82c..dcce06bff756 100644 --- a/sound/soc/codecs/max98363.c +++ b/sound/soc/codecs/max98363.c @@ -389,7 +389,7 @@ static const struct snd_soc_dapm_route max98363_audio_map[] = { {"BE_OUT", NULL, "AIFIN"}, }; -const struct snd_soc_component_driver soc_codec_dev_max98363 = { +static const struct snd_soc_component_driver soc_codec_dev_max98363 = { .controls = max98363_snd_controls, .num_controls = ARRAY_SIZE(max98363_snd_controls), .dapm_widgets = max98363_dapm_widgets,