ASoC: fix W=1 build warnings
authorBaoyou Xie <baoyou.xie@linaro.org>
Thu, 11 Aug 2016 06:38:13 +0000 (14:38 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 11 Aug 2016 14:02:49 +0000 (15:02 +0100)
commit1d9d0c65d95ecc446972ace6a7583e5cfdc69e48
tree313898fa1011018c48ff0f1c89e52388643005a2
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
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>
sound/soc/sh/rcar/core.c