From: Li Haifeng Date: Fri, 23 Nov 2012 20:55:19 +0000 (+0100) Subject: PM / Freezer: Fixup compile error of try_to_freeze_nowarn() X-Git-Tag: next-20121205~51^2~4^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e5f5762177be52fde50ccba88938d66b5103c8e0;p=karo-tx-linux.git PM / Freezer: Fixup compile error of try_to_freeze_nowarn() 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/include/linux/freezer.h b/include/linux/freezer.h index d09af4b67cf1..b90091af5798 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h @@ -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) {}