diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-05-16 13:20:00 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-17 05:36:05 -0400 |
commit | 3048e76c93bccf875a49025870de08aed86c4692 (patch) | |
tree | 0ee483e104040788d2daa4b9e733a04e69579bd1 | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
ASoC: fsi: Move inline fsi_stream_is_play() before use
With gcc 4.1.2:
sound/soc/sh/fsi.c:304: warning: ‘fsi_stream_is_play’ declared inline after being called
sound/soc/sh/fsi.c:304: warning: previous declaration of ‘fsi_stream_is_play’ was here
Move fsi_stream_is_play() up to fix this, removing the need for a
forward declaration as well.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/fsi.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index ead520182e26..7c4bdd82bb95 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -301,7 +301,12 @@ struct fsi_master { | |||
301 | spinlock_t lock; | 301 | spinlock_t lock; |
302 | }; | 302 | }; |
303 | 303 | ||
304 | static int fsi_stream_is_play(struct fsi_priv *fsi, struct fsi_stream *io); | 304 | static inline int fsi_stream_is_play(struct fsi_priv *fsi, |
305 | struct fsi_stream *io) | ||
306 | { | ||
307 | return &fsi->playback == io; | ||
308 | } | ||
309 | |||
305 | 310 | ||
306 | /* | 311 | /* |
307 | * basic read write function | 312 | * basic read write function |
@@ -489,12 +494,6 @@ static void fsi_count_fifo_err(struct fsi_priv *fsi) | |||
489 | /* | 494 | /* |
490 | * fsi_stream_xx() function | 495 | * fsi_stream_xx() function |
491 | */ | 496 | */ |
492 | static inline int fsi_stream_is_play(struct fsi_priv *fsi, | ||
493 | struct fsi_stream *io) | ||
494 | { | ||
495 | return &fsi->playback == io; | ||
496 | } | ||
497 | |||
498 | static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi, | 497 | static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi, |
499 | struct snd_pcm_substream *substream) | 498 | struct snd_pcm_substream *substream) |
500 | { | 499 | { |