Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SMA1303: set sma_i2c_regmap storage-class-specifier to static

smatch reports
sound/soc/codecs/sma1303.c:1594:28:
warning: symbol 'sma_i2c_regmap' was not declared. Should it be static?

sma_i2c_regmap is only used in sma1303, so it should be static

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230309140959.2616497-1-trix@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Tom Rix and committed by
Mark Brown
d7d103d1 8cd3cb17

+1 -1
+1 -1
sound/soc/codecs/sma1303.c
··· 1591 1591 .num_dapm_routes = ARRAY_SIZE(sma1303_audio_map), 1592 1592 }; 1593 1593 1594 - const struct regmap_config sma_i2c_regmap = { 1594 + static const struct regmap_config sma_i2c_regmap = { 1595 1595 .reg_bits = 8, 1596 1596 .val_bits = 8, 1597 1597