Fix build break when freezer not configured
authorSteve French <smfrench@gmail.com>
Tue, 25 Oct 2011 15:02:53 +0000 (10:02 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 27 Oct 2011 21:53:40 +0000 (16:53 -0500)
fs/cifs/transport.c: In function 'wait_for_response':
fs/cifs/transport.c:328: error: implicit declaration of function 'wait_event_freezekillable'

Caused by commit f06ac72e9291 ("cifs, freezer: add
wait_event_freezekillable and have cifs use it").  In this config,
CONFIG_FREEZER is not set.

Reviewed-by: Shirish Pargaonkar <shirishp@us.ibm.com>
CC: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
include/linux/freezer.h

index a1555618801d44aa3eaa916c6469f416f89b1100..5989883d7763fb691ebef3d1928f6f07515cb579 100644 (file)
@@ -203,6 +203,9 @@ static inline void set_freezable_with_signal(void) {}
 #define wait_event_freezable_timeout(wq, condition, timeout)           \
                wait_event_interruptible_timeout(wq, condition, timeout)
 
+#define wait_event_freezekillable(wq, condition)               \
+               wait_event_killable(wq, condition)
+
 #endif /* !CONFIG_FREEZER */
 
 #endif /* FREEZER_H_INCLUDED */