2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/sound/drivers
Takashi Iwai 86b2723725 ALSA: Make snd_printd() and snd_printdd() inline
Because currently snd_printd() and snd_printdd() macros are expanded
to empty when CONFIG_SND_DEBUG=n, a compile warning like below
appears sometimes, and we had to covert it by ugly ifdefs:
  sound/pci/hda/patch_sigmatel.c: In function ‘stac92hd71bxx_fixup_hp’:
  sound/pci/hda/patch_sigmatel.c:2434:24: warning: unused variable ‘spec’ [-Wunused-variable]

For "fixing" these issues better, this patch replaces snd_printd() and
snd_printdd() definitions with empty inline functions instead of
macros.  This should have the same effect but shut up warnings like
above.

But since we had already put ifdefs, changing to inline functions
would trigger compile errors.  So, such ifdefs is removed in this
patch.

In addition, snd_pci_quirk name field is defined only when
CONFIG_SND_DEBUG_VERBOSE is set, and the reference to it in
snd_printdd() argument triggers the build errors, too.  For avoiding
these errors, introduce a new macro snd_pci_quirk_name() that is
defined no matter how the debug option is set.

Reported-by: Stratos Karafotis <stratosk@semaphore.gr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2013-01-25 18:32:14 +01:00
..
mpu401 ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
opl3 sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
opl4 ALSA: opl4: use list_move_tail instead of list_del/list_add_tail 2012-09-05 09:14:45 +02:00
pcsp ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
vx ALSA: Make snd_printd() and snd_printdd() inline 2013-01-25 18:32:14 +01:00
aloop.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
dummy.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
Kconfig ALSA: vx: hard dependency on the standard fw loader 2012-11-22 17:48:01 +01:00
Makefile ALSA: introduce the snd-aloop module for the PCM loopback 2010-08-09 14:21:11 +02:00
ml403-ac97cr.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
mtpav.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
mts64.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
pcm-indirect2.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pcm-indirect2.h [ALSA] Xilinx ML403 AC97 Controller Reference device driver 2008-01-31 17:29:15 +01:00
portman2x4.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
serial-u16550.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
virmidi.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00