From patchwork Sat Jun 17 12:26:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 109484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1973776vqr; Sat, 17 Jun 2023 06:21:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4trFr85SdfBm/CgR4QI/jE3Lu+dw8OBHn1AHG8PAMYfx1DJn8QqMODWOIkqbTOi/TDoEzF X-Received: by 2002:a05:6a20:549b:b0:10c:2349:459e with SMTP id i27-20020a056a20549b00b0010c2349459emr6967995pzk.10.1687008093617; Sat, 17 Jun 2023 06:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687008093; cv=none; d=google.com; s=arc-20160816; b=YdpaiSeUUy+kaX/CmaMktkFOSr6p3rdgHGty+sfPipX2MAonEYWYi7M/ULlnHwIDH2 021xOCWiQ0fMKugxOMkawfok7shpQjliS9SjQMbttPkkpqhTT+gfquWit4I94f8SDk6C fstQUBE05YVUkZQe3TnKV3MKTjEIrh9lui1UpfR9a1E+1oXJJmqgX6pEggCT9BSOeTbV 2D40iGLWE8oSlf0MOygfyMWmZD12bFWicRqZb7vEG81g/2yW9OIQCFd+umnpgQTiJ1Es nPKZrytdKQQW/Vy5s9LEVK4ZORHNEV1lItMwCM4J32YhICpk7erIy0I6VFkrJLuJ3bcJ gS0Q== 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=szv0cF+bl4sIifpCG+zmQZUts/OGqmFER4Ll8Eqs/O8=; b=gShiZkt/ZSyir6wBkrT1PqHCmTPuYibgX0iaIXLXKPxSaWWxU6Kk189RF7YSwue9gO bPjdSJFijbnMKTUZrKmPgPDdnNBia7K9FwoWRTdzuKMCYw7DquUKnxkaC1UH67IPHVzU z13GyGmXpqzFR2ya0apevV4YSyqnr1Za9m5HWRpMULAJBLFCOMNSIvFwfhyW1eTDuzHi mJJXIuN8L8e+Pj6EMR1jtN4caOrQIYLK4HsH4supA6NyGZ1kr5FANDjS9h76cqmgUhKj 3vj5VOQ4UN7NMrxxL8dp5b0xhB/PAYktCC3o/DLE9KV/ic4AZr6CN+pWPSZoqdO5Oj7Y 2mZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TkTGJ6t8; 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 l70-20020a638849000000b005533647f7c5si4757171pgd.420.2023.06.17.06.21.18; Sat, 17 Jun 2023 06:21:33 -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=TkTGJ6t8; 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 S1345932AbjFQM1f (ORCPT + 99 others); Sat, 17 Jun 2023 08:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230312AbjFQM1d (ORCPT ); Sat, 17 Jun 2023 08:27:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB76E100 for ; Sat, 17 Jun 2023 05:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687004805; 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=szv0cF+bl4sIifpCG+zmQZUts/OGqmFER4Ll8Eqs/O8=; b=TkTGJ6t8bc0ozyONrd/T6EmLHXf9e0DUDa4IMqBygAeydPQIe+gpzaLf5n44pBHo6HU4YC VeQoXM30fJlYATPELhBTUngDr+j73mXyjWCxKdNFoxlzidjY2Ql0PKTKdxKF4I4b2G2pQO 0gpUs4JN+ueDTRgxBEwCRRrqpEHnwyA= 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-286-0Gap7E0ZP9m3vzOacEDqgw-1; Sat, 17 Jun 2023 08:26:43 -0400 X-MC-Unique: 0Gap7E0ZP9m3vzOacEDqgw-1 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-62fe9513320so21414476d6.3 for ; Sat, 17 Jun 2023 05:26:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687004803; x=1689596803; 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=szv0cF+bl4sIifpCG+zmQZUts/OGqmFER4Ll8Eqs/O8=; b=gwbqw+QzFcekwH0x/zg0qdTf1bM79W+t5CWgdcSYiRBi6fD26IlixCsDaVdTBfqFP+ +6UYrrM4C/3+Ia4wMo7GwVrBXwhr4lbQEUpfU6xAUDQ/g7Uy2Ldq++dRo7Z92jzdcarz +NE+Lz5wTwqQ3P1xKU3cV8ukYrF/zMt9qxeVwzodzq0WreFER7EKd+jX9joC7lY8ZlKE u8x6yMT+eC+wV+cAgvjWop64MVM4GFCzYNkfdm1aRoY4zZ7jW6pFMaxIPW9TrataFlCy tU+rY4d4Kqg6fr9fKYYP7dU9PLSW5f0ARbNk21WccJHuxN+PGbRgFx+6Y+R6jGQBsWQK /ALQ== X-Gm-Message-State: AC+VfDw46ZVyjEwgRoBt8kTRyshAlIWbXvqpgREB7AuDkBbc6mdrGv3B DUQAMIaWc2oOEXiTEAitpb1QyehE/9B+miJ5Fjl9obzptJnWgmj5T87db0sUOaFnvxzyFjvWOt8 5ML3KXSy9V/3AwbGCtyFAlzlX X-Received: by 2002:a05:6214:2aa9:b0:621:41f6:1f7b with SMTP id js9-20020a0562142aa900b0062141f61f7bmr4669467qvb.7.1687004803051; Sat, 17 Jun 2023 05:26:43 -0700 (PDT) X-Received: by 2002:a05:6214:2aa9:b0:621:41f6:1f7b with SMTP id js9-20020a0562142aa900b0062141f61f7bmr4669446qvb.7.1687004802772; Sat, 17 Jun 2023 05:26:42 -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 l8-20020a0ce088000000b0062df235c6d9sm5050098qvk.18.2023.06.17.05.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jun 2023 05:26:42 -0700 (PDT) From: Tom Rix To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, ryans.lee@analog.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Tom Rix Subject: [PATCH] ASoC: max98388: set variable soc_codec_dev_max98388 storage-class-specifier to static Date: Sat, 17 Jun 2023 08:26:35 -0400 Message-Id: <20230617122635.3225639-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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?1768956198482964056?= X-GMAIL-MSGID: =?utf-8?q?1768956198482964056?= smatch reports sound/soc/codecs/max98388.c:890:39: warning: symbol 'soc_codec_dev_max98388' was not declared. Should it be static? This variable is only used in its defining file, so it should be static. Signed-off-by: Tom Rix --- sound/soc/codecs/max98388.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98388.c b/sound/soc/codecs/max98388.c index 8062a7115007..b7d1d5c7b72f 100644 --- a/sound/soc/codecs/max98388.c +++ b/sound/soc/codecs/max98388.c @@ -887,7 +887,7 @@ static const struct regmap_config max98388_regmap = { .cache_type = REGCACHE_RBTREE, }; -const struct snd_soc_component_driver soc_codec_dev_max98388 = { +static const struct snd_soc_component_driver soc_codec_dev_max98388 = { .probe = max98388_probe, .controls = max98388_snd_controls, .num_controls = ARRAY_SIZE(max98388_snd_controls),