Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884Ab2KEBmw (ORCPT ); Sun, 4 Nov 2012 20:42:52 -0500 Received: from mail-wg0-f42.google.com ([74.125.82.42]:58929 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035Ab2KEBmu (ORCPT ); Sun, 4 Nov 2012 20:42:50 -0500 MIME-Version: 1.0 Date: Mon, 5 Nov 2012 09:42:48 +0800 Message-ID: Subject: [PATCH] Fixup compile error of try_to_freeze_nowarn From: Li Haifeng To: Len Brown , Pavel Machek , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 32 Subject: [PATCH] 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 --- include/linux/freezer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/freezer.h b/include/linux/freezer.h index a628084..3c0c1fb 100644 --- a/include/linux/freezer.h +++ b/include/linux/freezer.h @@ -188,6 +188,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) {} -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/