]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-motu: mark trace helpers as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 19 Apr 2017 17:51:29 +0000 (19:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Apr 2017 10:50:45 +0000 (12:50 +0200)
commitcec60239d0e836aa6f9363ac6e052c18ce3bec94
treecfe6adfb40b124de195887c150b299112c0d2d08
parenta28160304f22060c1521c704f514af6502523fc3
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: 3ced7fd2baeb ("ALSA: firewire-motu: add tracepoints for SPH in IEC 61883-1 fashion")
Fixes: bcf78f5e980b ("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>
sound/firewire/motu/amdtp-motu.c