1
0
Fork 0
alistair23-linux/sound/firewire/motu
Arnd Bergmann fa8323bf49 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: 17909c1b30 ("ALSA: firewire-motu: add tracepoints for SPH in IEC 61883-1 fashion")
Fixes: c6b0b9e65f ("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>
2017-04-20 12:50:45 +02:00
..
Makefile ALSA: firewire-motu: add tracepoints for SPH in IEC 61883-1 fashion 2017-04-11 08:30:45 +02:00
amdtp-motu-trace.h ALSA: firewire-motu: add tracepoints for messages for unique protocol 2017-04-11 08:30:47 +02:00
amdtp-motu.c ALSA: firewire-motu: mark trace helpers as __maybe_unused 2017-04-20 12:50:45 +02:00
motu-hwdep.c ALSA: firewire-motu: enable to read transaction cache via hwdep interface 2017-03-28 12:34:06 +02:00
motu-midi.c ALSA: firewire-motu: add hwdep interface 2017-03-28 12:34:02 +02:00
motu-pcm.c ALSA: firewire-motu: add hwdep interface 2017-03-28 12:34:02 +02:00
motu-proc.c ALSA: firewire-motu: add proc node to show current statuc of clock and packet formats 2017-03-28 12:33:51 +02:00
motu-protocol-v2.c ALSA: firewire-motu: add support for MOTU 828mk2 as a model with protocol version 2 2017-03-28 12:34:08 +02:00
motu-protocol-v3.c ALSA: firewire-motu: remove invalid bitshift for register value 2017-04-05 21:36:11 +02:00
motu-stream.c ALSA: firewire-motu: add hwdep interface 2017-03-28 12:34:02 +02:00
motu-transaction.c ALSA: firewire-motu: enable to read transaction cache via hwdep interface 2017-03-28 12:34:06 +02:00
motu.c ALSA: firewire-motu: add support for MOTU 828mk3 (FireWire/Hybrid) as a model with protocol version 3 2017-03-28 12:34:13 +02:00
motu.h ALSA: firewire-motu: add support for MOTU 828mk3 (FireWire/Hybrid) as a model with protocol version 3 2017-03-28 12:34:13 +02:00