]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/mutex.h
[ARM] 3690/1: genirq: Introduce and make use of dummy irq chip
[karo-tx-linux.git] / kernel / mutex.h
index 00fe84e7b672ba39e1fb86648511aba53c76a514..06918994725726cec4e0f98456d391a821258d49 100644 (file)
@@ -9,8 +9,10 @@
  * !CONFIG_DEBUG_MUTEXES case. Most of them are NOPs:
  */
 
-#define spin_lock_mutex(lock)                  spin_lock(lock)
-#define spin_unlock_mutex(lock)                        spin_unlock(lock)
+#define spin_lock_mutex(lock, flags) \
+               do { spin_lock(lock); (void)(flags); } while (0)
+#define spin_unlock_mutex(lock, flags) \
+               do { spin_unlock(lock); (void)(flags); } while (0)
 #define mutex_remove_waiter(lock, waiter, ti) \
                __list_del((waiter)->list.prev, (waiter)->list.next)