diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-04-19 13:51:29 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-04-20 06:50:45 -0400 |
commit | fa8323bf49f5c92363fe7c3c80b6b342f5430baa (patch) | |
tree | cfe6adfb40b124de195887c150b299112c0d2d08 | |
parent | 5cd5b1bdfb0137d0e814a51ff203d72c76b9f375 (diff) |
ALSA: firewire-motu: mark trace helpers as __maybe_unused
Two functions were introduced for the purpose of tracing but cause warnings
when tracing is disabled:
sound/firewire/motu/amdtp-motu.c:284:13: error: 'copy_message' defined but not used [-Werror=unused-function]
static void copy_message(u64 *frames, __be32 *buffer, unsigned int data_blocks,
sound/firewire/motu/amdtp-motu.c:271:13: error: 'copy_sph' defined but not used [-Werror=unused-function]
static void copy_sph(u32 *frames, __be32 *buffer, unsigned int data_blocks,
Marking them as __maybe_unused will do the right thing here.
Fixes: 17909c1b3058 ("ALSA: firewire-motu: add tracepoints for SPH in IEC 61883-1 fashion")
Fixes: c6b0b9e65f09 ("ALSA: firewire-motu: add tracepoints for messages for unique protocol")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/firewire/motu/amdtp-motu.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/firewire/motu/amdtp-motu.c b/sound/firewire/motu/amdtp-motu.c index 996b5f818918..96f0091144bb 100644 --- a/sound/firewire/motu/amdtp-motu.c +++ b/sound/firewire/motu/amdtp-motu.c | |||
@@ -268,8 +268,9 @@ static void read_midi_messages(struct amdtp_stream *s, __be32 *buffer, | |||
268 | } | 268 | } |
269 | 269 | ||
270 | /* For tracepoints. */ | 270 | /* For tracepoints. */ |
271 | static void copy_sph(u32 *frames, __be32 *buffer, unsigned int data_blocks, | 271 | static void __maybe_unused copy_sph(u32 *frames, __be32 *buffer, |
272 | unsigned int data_block_quadlets) | 272 | unsigned int data_blocks, |
273 | unsigned int data_block_quadlets) | ||
273 | { | 274 | { |
274 | unsigned int i; | 275 | unsigned int i; |
275 | 276 | ||
@@ -281,8 +282,9 @@ static void copy_sph(u32 *frames, __be32 *buffer, unsigned int data_blocks, | |||
281 | } | 282 | } |
282 | 283 | ||
283 | /* For tracepoints. */ | 284 | /* For tracepoints. */ |
284 | static void copy_message(u64 *frames, __be32 *buffer, unsigned int data_blocks, | 285 | static void __maybe_unused copy_message(u64 *frames, __be32 *buffer, |
285 | unsigned int data_block_quadlets) | 286 | unsigned int data_blocks, |
287 | unsigned int data_block_quadlets) | ||
286 | { | 288 | { |
287 | unsigned int i; | 289 | unsigned int i; |
288 | 290 | ||