Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp448402pxb; Sat, 18 Sep 2021 07:27:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZCsQMHcFtWI00F7uUI94FwQT+23+84YtQ2PH5WhYdKi+JdO/cyJ1+5Yv+XP3Ff8ZdQlP/ X-Received: by 2002:a05:6e02:156c:: with SMTP id k12mr11878770ilu.61.1631975250460; Sat, 18 Sep 2021 07:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631975250; cv=none; d=google.com; s=arc-20160816; b=IzSQgGEyY0/Ysuv4USDLyQCT+bH5qB//Pe+C9cgqP71wOf6/fnf/KAAOx+RpfzVQIY tiv86aRWIRrM/xRNpKkh8V+ggIgrIoTmOIy4gRFLeLnImhp3fogDe+Fe5/D9u56yT9MS YvyNStEOy2vqkd9I+cIKSsOgB5zUMmTzUkO0tE4r8e28oljoU7Lto3N4Od6lbxIWixQ+ 9Uao9dOZCsQP5OWHnqf/LrbomgrzPAAQSKpOi5Xv7r+YO2wMHs4e8+jKzqbFnYkDyfvm ZKfuACP8LX4083tGhsDfbAT0ZZF4BxKNed9aHxn08H71RcjE+xy4EK1pc3QhfblaZxmn eaNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=BF3OPIX8cWOtvClAREIeCtbP+Vsae9FqgooTyRX/GTA=; b=rK7nJ0SkctR/pD5W8elh3YI0lXchbpaw6zCPejyqpGomdmVGnhWDE/Il5XpbUs9ttp nfnw/4UPYoh4U1Nfbm77NB9XHEj3vfBkXPbIYP1qc/PZT4Q6I3tcJVigO8M75/nlotts Y00t7DOQ6AJFKzTFdznu0mpza55PTuQ+vsgn7Cx5on/W88Lwqmdlynhx1KDj+WkGs1zT LyKfUQZXOA/xzAmhe7e2VsmHozRKhiu8Ib9SORHKudkpToIm3tlAK0HkdFtyzuZUBxmL KAjMRwanqDqEc+hlwKGaJsMd9zzwSqn7HypXyVy6St2cW/hzN8K0dL/GqzAAbgxPAUeM AOEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m24si8934416jac.82.2021.09.18.07.27.18; Sat, 18 Sep 2021 07:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237977AbhIRJER (ORCPT + 99 others); Sat, 18 Sep 2021 05:04:17 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:54566 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233888AbhIRJEO (ORCPT ); Sat, 18 Sep 2021 05:04:14 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UomJtwg_1631955766; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UomJtwg_1631955766) by smtp.aliyun-inc.com(127.0.0.1); Sat, 18 Sep 2021 17:02:49 +0800 From: Jiapeng Chong To: oder_chiou@realtek.com Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] ASoC: rt5682s: make rt5682s_aif2_dai_ops and rt5682s_soc_component_dev Date: Sat, 18 Sep 2021 17:02:06 +0800 Message-Id: <1631955726-77693-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This symbol is not used outside of rt5682s.c, so marks it static. Fix the following sparse warning: sound/soc/codecs/rt5682s.c:2848:39: warning: symbol 'rt5682s_soc_component_dev' was not declared. Should it be static? sound/soc/codecs/rt5682s.c:2842:30: warning: symbol 'rt5682s_aif2_dai_ops' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/soc/codecs/rt5682s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c index d878a20..d3e965b 100644 --- a/sound/soc/codecs/rt5682s.c +++ b/sound/soc/codecs/rt5682s.c @@ -2839,13 +2839,13 @@ static int rt5682s_resume(struct snd_soc_component *component) .set_bclk_ratio = rt5682s_set_bclk1_ratio, }; -const struct snd_soc_dai_ops rt5682s_aif2_dai_ops = { +static const struct snd_soc_dai_ops rt5682s_aif2_dai_ops = { .hw_params = rt5682s_hw_params, .set_fmt = rt5682s_set_dai_fmt, .set_bclk_ratio = rt5682s_set_bclk2_ratio, }; -const struct snd_soc_component_driver rt5682s_soc_component_dev = { +static const struct snd_soc_component_driver rt5682s_soc_component_dev = { .probe = rt5682s_probe, .remove = rt5682s_remove, .suspend = rt5682s_suspend, -- 1.8.3.1