aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-08-11 02:38:13 -0400
committerMark Brown <broonie@kernel.org>2016-08-11 10:02:49 -0400
commit1d9d0c65d95ecc446972ace6a7583e5cfdc69e48 (patch)
tree313898fa1011018c48ff0f1c89e52388643005a2 /sound
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
ASoC: fix W=1 build warnings
We get 1 warning about global functions without a declaration in the ASoC sub-system when building with W=1: sound/soc/sh/rcar/core.c:113:6: warning: no previous prototype for 'rsnd_mod_make_sure' [-Wmissing-prototypes] void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type) In this case, the function 'rsnd_mod_make_sure' is declared in rsnd.h file, but it only valid if the macro DEBUG is claimed. so the implementation of function 'rsnd_mod_make_sure' need be held by macro DEBUG. Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/sh/rcar/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 3351a701c60e..f718a200f77d 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -110,6 +110,7 @@ MODULE_DEVICE_TABLE(of, rsnd_of_match);
110/* 110/*
111 * rsnd_mod functions 111 * rsnd_mod functions
112 */ 112 */
113#ifdef DEBUG
113void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type) 114void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type)
114{ 115{
115 if (mod->type != type) { 116 if (mod->type != type) {
@@ -120,6 +121,7 @@ void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type)
120 rsnd_mod_name(mod), rsnd_mod_id(mod)); 121 rsnd_mod_name(mod), rsnd_mod_id(mod));
121 } 122 }
122} 123}
124#endif
123 125
124char *rsnd_mod_name(struct rsnd_mod *mod) 126char *rsnd_mod_name(struct rsnd_mod *mod)
125{ 127{