]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PM / Freezer: Fixup compile error of try_to_freeze_nowarn()
authorLi Haifeng <omycle@gmail.com>
Fri, 23 Nov 2012 20:55:19 +0000 (21:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Nov 2012 20:55:19 +0000 (21:55 +0100)
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>
include/linux/freezer.h

index d09af4b67cf121ad91fd4ca02bec01560b6110fd..b90091af5798bec566bf436a68f15aa4fb70f64b 100644 (file)
@@ -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) {}