summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/atom
diff options
context:
space:
mode:
authorTakashi Sakamoto2017-05-02 15:33:03 +0200
committerMark Brown2017-05-14 12:00:44 +0200
commit65db85fba1df213ff80d6f3cbafee244c58f6ec3 (patch)
tree6c424c7849bb631fd1282da14dec2b987fd5fe19 /sound/soc/intel/atom
parentASoC: Intel: Skylake: Fix typo for token d0i3 caps (diff)
downloadkernel-qcow2-linux-65db85fba1df213ff80d6f3cbafee244c58f6ec3.tar.gz
kernel-qcow2-linux-65db85fba1df213ff80d6f3cbafee244c58f6ec3.tar.xz
kernel-qcow2-linux-65db85fba1df213ff80d6f3cbafee244c58f6ec3.zip
ASoC: intel: atom: localize variable without external linkage
A driver for Intel SST driver for old atom platform includes a variable which has no external linkage. These functions should have static qualifier. This commit adds the qualifier to localize the variable. This issue is detected by sparse: sst.c:261:1: warning: symbol 'dev_attr_firmware_version' was not declared. Should it be static? Cc: Sebastien Guiriec <sebastien.guiriec@intel.com> Cc: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/atom')
-rw-r--r--sound/soc/intel/atom/sst/sst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/atom/sst/sst.c b/sound/soc/intel/atom/sst/sst.c
index f9ba71315e33..d97556a3772c 100644
--- a/sound/soc/intel/atom/sst/sst.c
+++ b/sound/soc/intel/atom/sst/sst.c
@@ -258,7 +258,7 @@ static ssize_t firmware_version_show(struct device *dev,
}
-DEVICE_ATTR_RO(firmware_version);
+static DEVICE_ATTR_RO(firmware_version);
static const struct attribute *sst_fw_version_attrs[] = {
&dev_attr_firmware_version.attr,