ASoC: tegra: Fix compile warning with CONFIG_PM=n
Subsystems (3)
cover ASoC: tegra: Fix compile warning with CONFIG_PM=n
Hi,
this is a trivial patch set to add the missing __maybe_unused for covering the compile warnings with CONFIG_PM=n.
Takashi
===
Takashi Iwai (5):
ASoC: tegra: tegra186_dspk: Fix compile warning with CONFIG_PM=n
ASoC: tegra: tegra210_admaif: Fix compile warning with CONFIG_PM=n
ASoC: tegra: tegra210_ahub: Fix compile warning with CONFIG_PM=n
ASoC: tegra: tegra210_dmic: Fix compile warning with CONFIG_PM=n
ASoC: tegra: tegra210_i2s: Fix compile warning with CONFIG_PM=n
sound/soc/tegra/tegra186_dspk.c | 4 ++-- sound/soc/tegra/tegra210_admaif.c | 4 ++-- sound/soc/tegra/tegra210_ahub.c | 4 ++-- sound/soc/tegra/tegra210_dmic.c | 4 ++-- sound/soc/tegra/tegra210_i2s.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
2.16.4
PATCH 1/5 ASoC: tegra: tegra186_dspk: Fix compile warning with CONFIG_PM=n
Fix trivial compile warnings wrt unused functions by adding__maybe_unused prefix:
sound/soc/tegra/tegra186_dspk.c:74:12: warning: 'tegra186_dspk_runtime_suspend' defined but not used [-Wunused-function] sound/soc/tegra/tegra186_dspk.c:86:12: warning: 'tegra186_dspk_runtime_resume' defined but not used [-Wunused-function]
--- sound/soc/tegra/tegra186_dspk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra186_dspk.c +2 -2
@@ -71,7 +71,7 @@ static int tegra186_dspk_put_control(struct snd_kcontrol *kcontrol,return 0 ; } -static int tegra186_dspk_runtime_suspend (struct device *dev) +static int __maybe_unused tegra186_dspk_runtime_suspend (struct device *dev) {struct tegra186_dspk *dspk =dev_get_drvdata (dev);
@@ -83,7 +83,7 @@ static int tegra186_dspk_runtime_suspend(struct device *dev)return 0 ; } -static int tegra186_dspk_runtime_resume (struct device *dev) +static int __maybe_unused tegra186_dspk_runtime_resume (struct device *dev) {struct tegra186_dspk *dspk =dev_get_drvdata (dev);int err;
Signature · 1 line
2.16.4
PATCH 2/5 ASoC: tegra: tegra210_admaif: Fix compile warning with CONFIG_PM=n
In reply to Takashi IwaiFix trivial compile warnings wrt unused functions by adding__maybe_unused prefix:
sound/soc/tegra/tegra210_admaif.c:232:12: warning: 'tegra_admaif_runtime_resume' defined but not used [-Wunused-function] sound/soc/tegra/tegra210_ahub.c:567:12: warning: 'tegra_ahub_runtime_suspend' defined but not used [-Wunused-function]
--- sound/soc/tegra/tegra210_admaif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra210_admaif.c +2 -2
@@ -219,7 +219,7 @@ static const struct regmap_config tegra186_admaif_regmap_config = { .cache_type = REGCACHE_FLAT, }; -static int tegra_admaif_runtime_suspend (struct device *dev) +static int __maybe_unused tegra_admaif_runtime_suspend (struct device *dev) {struct tegra_admaif *admaif =dev_get_drvdata (dev);
@@ -229,7 +229,7 @@ static int tegra_admaif_runtime_suspend(struct device *dev)return 0 ; } -static int tegra_admaif_runtime_resume (struct device *dev) +static int __maybe_unused tegra_admaif_runtime_resume (struct device *dev) {struct tegra_admaif *admaif =dev_get_drvdata (dev);
Signature · 1 line
2.16.4
PATCH 3/5 ASoC: tegra: tegra210_ahub: Fix compile warning with CONFIG_PM=n
In reply to Takashi IwaiFix trivial compile warnings wrt unused functions by adding__maybe_unused prefix:
sound/soc/tegra/tegra210_ahub.c:567:12: warning: 'tegra_ahub_runtime_suspend' defined but not used [-Wunused-function] sound/soc/tegra/tegra210_ahub.c:579:12: warning: 'tegra_ahub_runtime_resume' defined but not used [-Wunused-function]
--- sound/soc/tegra/tegra210_ahub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra210_ahub.c +2 -2
@@ -564,7 +564,7 @@ static const struct of_device_id tegra_ahub_of_match[] = { };MODULE_DEVICE_TABLE (of, tegra_ahub_of_match); -static int tegra_ahub_runtime_suspend (struct device *dev) +static int __maybe_unused tegra_ahub_runtime_suspend (struct device *dev) {struct tegra_ahub *ahub =dev_get_drvdata (dev);
@@ -576,7 +576,7 @@ static int tegra_ahub_runtime_suspend(struct device *dev)return 0 ; } -static int tegra_ahub_runtime_resume (struct device *dev) +static int __maybe_unused tegra_ahub_runtime_resume (struct device *dev) {struct tegra_ahub *ahub =dev_get_drvdata (dev);int err;
Signature · 1 line
2.16.4
PATCH 4/5 ASoC: tegra: tegra210_dmic: Fix compile warning with CONFIG_PM=n
In reply to Takashi IwaiFix trivial compile warnings wrt unused functions by adding__maybe_unused prefix:
sound/soc/tegra/tegra210_dmic.c:43:12: warning: 'tegra210_dmic_runtime_suspend' defined but not used [-Wunused-function] sound/soc/tegra/tegra210_dmic.c:55:12: warning: 'tegra210_dmic_runtime_resume' defined but not used [-Wunused-function]
--- sound/soc/tegra/tegra210_dmic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra210_dmic.c +2 -2
@@ -40,7 +40,7 @@ static const struct reg_default tegra210_dmic_reg_defaults[] = { { TEGRA210_DMIC_LP_BIQUAD_1_COEF_4, 0x0 }, }; -static int tegra210_dmic_runtime_suspend (struct device *dev) +static int __maybe_unused tegra210_dmic_runtime_suspend (struct device *dev) {struct tegra210_dmic *dmic =dev_get_drvdata (dev);
@@ -52,7 +52,7 @@ static int tegra210_dmic_runtime_suspend(struct device *dev)return 0 ; } -static int tegra210_dmic_runtime_resume (struct device *dev) +static int __maybe_unused tegra210_dmic_runtime_resume (struct device *dev) {struct tegra210_dmic *dmic =dev_get_drvdata (dev);int err;
Signature · 1 line
2.16.4
PATCH 5/5 ASoC: tegra: tegra210_i2s: Fix compile warning with CONFIG_PM=n
In reply to Takashi IwaiFix trivial compile warnings wrt unused functions by adding__maybe_unused prefix:
sound/soc/tegra/tegra210_i2s.c:167:12: warning: 'tegra210_i2s_runtime_suspend' defined but not used [-Wunused-function] sound/soc/tegra/tegra210_i2s.c:179:12: warning: 'tegra210_i2s_runtime_resume' defined but not used [-Wunused-function]
--- sound/soc/tegra/tegra210_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/tegra/tegra210_i2s.c +2 -2
@@ -164,7 +164,7 @@ static int tegra210_i2s_init(struct snd_soc_dapm_widget *w,return tegra210_i2s_sw_reset (compnt, is_playback); } -static int tegra210_i2s_runtime_suspend (struct device *dev) +static int __maybe_unused tegra210_i2s_runtime_suspend (struct device *dev) {struct tegra210_i2s *i2s =dev_get_drvdata (dev);
@@ -176,7 +176,7 @@ static int tegra210_i2s_runtime_suspend(struct device *dev)return 0 ; } -static int tegra210_i2s_runtime_resume (struct device *dev) +static int __maybe_unused tegra210_i2s_runtime_resume (struct device *dev) {struct tegra210_i2s *i2s =dev_get_drvdata (dev);int err;
Signature · 1 line
2.16.4
Mark Brown
maintainerQuoted 9 lines · Takashi Iwai
this is a trivial patch set to add the missing
__maybe_unusedfor covering the compile warnings withCONFIG_PM=n.Takashi
===
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/5] ASoC: tegra: tegra186_dspk: Fix compile warning with CONFIG_PM=n
commit: b191f01a3756f8d5d0b92bad0a07dac7e373d8be
[2/5] ASoC: tegra: tegra210_admaif: Fix compile warning with CONFIG_PM=n
commit: 1337f2c5f104c84d5a943b2eb644db3eaf4a64e0
[3/5] ASoC: tegra: tegra210_ahub: Fix compile warning with CONFIG_PM=n
commit: fafac559604bd2e74f5f6febd58682df3738cdd9
[4/5] ASoC: tegra: tegra210_dmic: Fix compile warning with CONFIG_PM=n
commit: 7543f16a04465db95e83e8409e246f49f35c874a
[5/5] ASoC: tegra: tegra210_i2s: Fix compile warning with CONFIG_PM=n
commit: 823279c374669a15a139a29b891dc0d7460262c6All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 20 lines · Takashi Iwai
External email: Use caution opening links or attachments
Hi,
this is a trivial patch set to add the missing
__maybe_unusedfor covering the compile warnings withCONFIG_PM=n.Takashi
===
Takashi Iwai (5):
ASoC: tegra:tegra186_dspk: Fix compile warning withCONFIG_PM=n
ASoC: tegra:tegra210_admaif: Fix compile warning withCONFIG_PM=n
ASoC: tegra:tegra210_ahub: Fix compile warning withCONFIG_PM=n
ASoC: tegra:tegra210_dmic: Fix compile warning withCONFIG_PM=n
ASoC: tegra:tegra210_i2s: Fix compile warning withCONFIG_PM=n
Quoted 6 lines
sound/soc/tegra/tegra186_dspk.c | 4 ++-- sound/soc/tegra/tegra210_admaif.c | 4 ++-- sound/soc/tegra/tegra210_ahub.c | 4 ++-- sound/soc/tegra/tegra210_dmic.c | 4 ++-- sound/soc/tegra/tegra210_i2s.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-)
Thank you for the series.
Quoted 4 lines
--
2.16.4