Skip to content

Commit

Permalink
Fix build break when freezer not configured
Browse files Browse the repository at this point in the history
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 f06ac72 ("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>
  • Loading branch information
Steve French committed Oct 27, 2011
1 parent 96814ec commit e0c8ea1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/freezer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit e0c8ea1

Please sign in to comment.