Skip to content

Commit

Permalink
PM / Freezer: Fixup compile error of try_to_freeze_nowarn()
Browse files Browse the repository at this point in the history
If FREEZER is not defined, the error as following will be throw
when compiled.
arch/arm/kernel/signal.c:645: error: implicit declaration of function
'try_to_freeze_nowarn'

Signed-off-by: Haifeng Li <omycle@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Li Haifeng authored and Rafael J. Wysocki committed Nov 23, 2012
1 parent 4b6d1f1 commit e5f5762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/freezer.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ static inline int freeze_kernel_threads(void) { return -ENOSYS; }
static inline void thaw_processes(void) {}
static inline void thaw_kernel_threads(void) {}

static inline bool try_to_freeze_nowarn(void) { return false; }
static inline bool try_to_freeze(void) { return false; }

static inline void freezer_do_not_count(void) {}
Expand Down

0 comments on commit e5f5762

Please sign in to comment.