]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - include/linux/wait.h
Update bcachefs sources to 25de2b00dc bcachefs: Change check for invalid key types
[bcachefs-tools-debian] / include / linux / wait.h
index d30fb10d63f5b38b6076015d9d97ab47755eb931..4b9cbf38d52afef017d59d215bfe4006798afbf0 100644 (file)
@@ -18,10 +18,12 @@ struct __wait_queue {
        struct list_head        task_list;
 };
 
-typedef struct {
+struct wait_queue_head {
        spinlock_t              lock;
        struct list_head        task_list;
-} wait_queue_head_t;
+};
+
+typedef struct wait_queue_head wait_queue_head_t;
 
 void wake_up(wait_queue_head_t *);
 void wake_up_all(wait_queue_head_t *);
@@ -42,7 +44,7 @@ int default_wake_function(wait_queue_t *wait, unsigned mode, int flags, void *ke
        .task_list      = { &(name).task_list, &(name).task_list } }
 
 #define DECLARE_WAIT_QUEUE_HEAD(name) \
-       wait_queue_head_t name = __WAIT_QUEUE_HEAD_INITIALIZER(name)
+       struct wait_queue_head name = __WAIT_QUEUE_HEAD_INITIALIZER(name)
 
 static inline void init_waitqueue_head(wait_queue_head_t *q)
 {