diff options
| author | Takashi Iwai <tiwai@suse.de> | 2013-07-15 06:00:24 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2013-07-15 06:07:58 -0400 |
| commit | 4b8846062faac4e5c3f08e2e06bbb33c949aa51f (patch) | |
| tree | f3266715acd7dab2dea9fa81b0ff881c04324ebe | |
| parent | 8331b9e332a6e72d5285b05f56a7b66b692cb67a (diff) | |
sound: oss/vwsnd: Always define vwsnd_mutex
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>
| -rw-r--r-- | sound/oss/vwsnd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/oss/vwsnd.c b/sound/oss/vwsnd.c index d8db9023bc55..4bbcc0fcd4eb 100644 --- a/sound/oss/vwsnd.c +++ b/sound/oss/vwsnd.c | |||
| @@ -155,12 +155,13 @@ | |||
| 155 | 155 | ||
| 156 | #include "sound_config.h" | 156 | #include "sound_config.h" |
| 157 | 157 | ||
| 158 | static DEFINE_MUTEX(vwsnd_mutex); | ||
| 159 | |||
| 158 | /*****************************************************************************/ | 160 | /*****************************************************************************/ |
| 159 | /* debug stuff */ | 161 | /* debug stuff */ |
| 160 | 162 | ||
| 161 | #ifdef VWSND_DEBUG | 163 | #ifdef VWSND_DEBUG |
| 162 | 164 | ||
| 163 | static DEFINE_MUTEX(vwsnd_mutex); | ||
| 164 | static int shut_up = 1; | 165 | static int shut_up = 1; |
| 165 | 166 | ||
| 166 | /* | 167 | /* |
