Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2918721rwb; Mon, 15 Aug 2022 14:03:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR6pdzTFjvkhkxmWkEgi4LjWfUd/QNhAN1lyrtRPdL+/oOC40HbfVk6fAruw7jklvs4SiBLI X-Received: by 2002:a05:6402:5190:b0:43d:da02:566a with SMTP id q16-20020a056402519000b0043dda02566amr16079421edd.187.1660597400022; Mon, 15 Aug 2022 14:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597400; cv=none; d=google.com; s=arc-20160816; b=vCZqpJmgrFzwK4GoPbRTID1JqaQ4MZpnrIdNsz95IiXdzElMbJ56cOxzMlwDUhpAGa fjBmr+6JmheGcdT2co30/Cy3nU0eIRTdqnT19Jpii5LpQxNd7kEEq7Qd3h6t2F5oBZ1l tSURJJEog0j1yE5P9ZSLazFBxy1beBpaSneelNyPh8GVsYB2+AIKDm2JaAU5l7QamGxK pWEGzTEIQtjcpOuEO84EO9cjy4BqWjg+h6xUJ3LJnO7woco4LTUaDhXrQs2ofOYWtUQw MGOADWfR7BPKfqFZFWFVOQTqAMNEyqs3tuB1HYoMyej0JV7NLeMe1Xl/OXtEkrWpr/KK D9rQ== 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=SqotPjrxcfp0qVJ4PkdTNeJ0MmgIZTl+uNY/4myN/t4=; b=vM6900wV/Bj7ywwmwgifg0+6obnoEu2G3V4vznHV9EcGjybqIuBWXN3TofbW/kseCI oZFW6WTq5BtYlugUb5FA/w7LsSk0jGFswes5EhtoLsCt4lxPeqwPHxVoLCtgVn0ZbgIX oLe5XZWjJ2VvVjENoL8hJ7tiK26w94G0jAEGRe4cT1ZpW0ccTTfNqoKK4RuVDnQhYIzk DD+TlpGBNzZtyMz31iTyLUwUufq/ZchFoL04KTOwzGldiJwLAXz3OpGFMdddZ5ZOfPKA JmPTW64GPYxau2w8/j/+9hmus9eed359HwwWNio0mrrkyc4oyssPu+NgMa25XK/dNBkT ZEgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=f9ycYEZ9; 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 nc23-20020a1709071c1700b0072af3e12493si10541205ejc.992.2022.08.15.14.02.54; Mon, 15 Aug 2022 14:03:20 -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=f9ycYEZ9; 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 S245335AbiHOTdj (ORCPT + 99 others); Mon, 15 Aug 2022 15:33:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344959AbiHOT1c (ORCPT ); Mon, 15 Aug 2022 15:27:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F6005B791; Mon, 15 Aug 2022 11:43:21 -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 64DFEB81081; Mon, 15 Aug 2022 18:43:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DA0DC433D6; Mon, 15 Aug 2022 18:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588999; bh=DxR5Te+0hr5YPpVC4TDSEMJ/BVrdzLv1VvmTAOdfL3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f9ycYEZ96DiwIMw2poVyNW2Jr+7b/4SAr3A3BQhyw4sFUx0QWkwgAu1P/sxdUe/Vh qekC6rr9is+U+qHxq1ALekjd2M8yGeFeHYL2cTID9sl78kc+M3WqevQbmmC9Zo9bzk AS0nREjSK1zTtFsrpvB4BmRFgiDq8w71hvxoNSPc= 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.15 581/779] ASoC: samsung: change gpiod_speaker_power and rx1950_audio from global to static variables Date: Mon, 15 Aug 2022 20:03:45 +0200 Message-Id: <20220815180402.180048808@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 6ea1c8cc9167..2820097b00b9 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) @@ -227,7 +227,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