sound: oss/vwsnd: Always define vwsnd_mutex
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Jul 2013 10:00:24 +0000 (12:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jul 2013 10:07:58 +0000 (12:07 +0200)
While the conversion of BKL to mutex in commit 645ef9ef, the mutex
definition was put in a wrong place inside #ifdef WSND_DEBUG, which
leads to the build error.  Just move it outside the ifdef.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/vwsnd.c

index d8db9023bc55c6c7b901916a1bec990f84d9742d..4bbcc0fcd4eb0d7c988c06e21cc76afb1236969e 100644 (file)
 
 #include "sound_config.h"
 
+static DEFINE_MUTEX(vwsnd_mutex);
+
 /*****************************************************************************/
 /* debug stuff */
 
 #ifdef VWSND_DEBUG
 
-static DEFINE_MUTEX(vwsnd_mutex);
 static int shut_up = 1;
 
 /*