Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3254936rwb; Mon, 15 Aug 2022 22:25:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6aYDHKGb6mP5glf7/dPp25gXtnHY+ejvyBKGfRsUd6QZIFY2Q2x6d4Y37DohgBJo6nZTZY X-Received: by 2002:a17:902:e947:b0:170:d739:8cbe with SMTP id b7-20020a170902e94700b00170d7398cbemr21026401pll.141.1660627547648; Mon, 15 Aug 2022 22:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660627547; cv=none; d=google.com; s=arc-20160816; b=lm+10QyrK572HT15WjovmyvL0MZ3xAUdnogrBZPm4WQq+Asw7QGnnpzxLTvl7/snHz pk767SaPf4TA8Iqj4JMG6LGg+Jny6uclJk2hki7TRolqFMRG6zokbJXEGUiSvW5q24Wv 9fUgVrFy8slvWetAj+Kjvh7V0GUTUKd/IVaJtJySvtweTI83iDxCDhZ3E5jpfMkF49jE A6sGOXT32nNP8c/qvytYDYiEEt3MkKdt/VaS7t+kraa9he3sIhxy44RPCXEOHlQ48LY3 asgIhhwWF01Hqc87bmuwfqieRgGBlA3AIB+busgWbX2A2nTOAO0b2jmwgI5MV2Pul0IY 51Kw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5q6sALphhT5FadG2bWpDUlCKzsCSlq3GkPJmSwwYnkQ=; b=BKP+Fp39+QuupO0pAN8AZLepIRMaimvvNaU1CAYYtkQHMvOEO6QY7vfoC+NCdLFLk8 Y5l43KW59oG00YqPq6HQzHx03e+fKIPyxOq2bqjHYwAESaQ/Ie0WbUeej15Ti0ocssd2 TpId4hCRoSAqg2gR6qI/0TiOCzSN7o5qS6Ui+ZAUHqUqxipfKsuZoMLnTpiqOeDetgoD u1H6ygFxcyhwv8fJih8FuL+LxTspvkPWsgjK4359gIfXRjNPvVcKjDBe9iNfGccaZ4qu 9zNb9nLX7oPHdCfRVNdfblsnEM+nW8CR2AVmNEC6BH3eUMqlQ/pJKFf/M4HSm2+BFN+l dUHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Uf+821/h"; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l71-20020a63884a000000b003fc3e715428si18524pgd.342.2022.08.15.22.25.36; Mon, 15 Aug 2022 22:25:47 -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=@linuxfoundation.org header.s=korg header.b="Uf+821/h"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232266AbiHPEqy (ORCPT + 99 others); Tue, 16 Aug 2022 00:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231600AbiHPEn0 (ORCPT ); Tue, 16 Aug 2022 00:43:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B859E18D5B9; Mon, 15 Aug 2022 13:38:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 540C5B8114A; Mon, 15 Aug 2022 20:38:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82ECDC433C1; Mon, 15 Aug 2022 20:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595930; bh=e2TD9E+SVyiUU6IIoHXUF+v0E/GZ5txe1BePd/12NS0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uf+821/hHj2wufUFPeEDqoFrw5WeMM/KgXOBRZeEpYtfK03WA/P4VSPywstf9J+cL Kyf8JdlC9UtFVCAVFBuS7J/KMibSfV0YVPRWmOtdkttpiAZs1CZn6HXoenoPBj2xhh YDwKvrcJ9IqIl+k4zvnRvnlcAGAJQZo0IDENRBmI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tom Rix , Krzysztof Kozlowski , Mark Brown , Sasha Levin Subject: [PATCH 5.19 0919/1157] ASoC: samsung: change gpiod_speaker_power and rx1950_audio from global to static variables Date: Mon, 15 Aug 2022 20:04:35 +0200 Message-Id: <20220815180516.207752776@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 From: Tom Rix [ Upstream commit d2294461b90e0c5b3bbfaaf2c8baff4fd3e2bb13 ] sparse reports sound/soc/samsung/rx1950_uda1380.c:131:18: warning: symbol 'gpiod_speaker_power' was not declared. Should it be static? sound/soc/samsung/rx1950_uda1380.c:231:24: warning: symbol 'rx1950_audio' was not declared. Should it be static? Both gpiod_speaker_power and rx1950_audio are only used in rx1950_uda1380.c, so their storage class specifiers should be static. Fixes: 83d74e354200 ("ASoC: samsung: rx1950: turn into platform driver") Signed-off-by: Tom Rix Reviewed-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20220629185345.910406-1-trix@redhat.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/samsung/rx1950_uda1380.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/samsung/rx1950_uda1380.c b/sound/soc/samsung/rx1950_uda1380.c index ff3acc94a454..abf28321f7d7 100644 --- a/sound/soc/samsung/rx1950_uda1380.c +++ b/sound/soc/samsung/rx1950_uda1380.c @@ -128,7 +128,7 @@ static int rx1950_startup(struct snd_pcm_substream *substream) &hw_rates); } -struct gpio_desc *gpiod_speaker_power; +static struct gpio_desc *gpiod_speaker_power; static int rx1950_spk_power(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event) @@ -228,7 +228,7 @@ static int rx1950_probe(struct platform_device *pdev) return devm_snd_soc_register_card(dev, &rx1950_asoc); } -struct platform_driver rx1950_audio = { +static struct platform_driver rx1950_audio = { .driver = { .name = "rx1950-audio", .pm = &snd_soc_pm_ops, -- 2.35.1