From patchwork Mon Nov 5 01:42:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Haifeng X-Patchwork-Id: 1694971 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1FF4F3FCDE for ; Mon, 5 Nov 2012 01:42:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352Ab2KEBmv (ORCPT ); Sun, 4 Nov 2012 20:42:51 -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 Received: by mail-wg0-f42.google.com with SMTP id fm10so1665630wgb.1 for ; Sun, 04 Nov 2012 17:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eaxV2cAVnboAY8/C3jITr23i6KsGpiRlEgRWhRJfzuw=; b=PtFq/5xhN+gThhy/O1RS2xgpIFYxeyAU2kNqgvFs151vdOqSxvMg0OwKwzVqGZfwke QFVlkpHrCNUGdUypRojbYQYB02B0JTkH7z3ExUAC3cO6ihP6T+V9BzDYGhbJPPVrvi2B AR/Kvz/5E7Yjoe2kChDoCA9mq9JnyWUDlMhLW3+OouX7K6LzWvch3I8/wuxDMckIVI9c /gYyYZXnZMaowiKyf4QG0IzgaHe4mXUJK9AZb/6T4ev4gA1XrPSR+aWMbmiLek0wZAi8 eGV8Gq6ROynrHrrazDD3AhkaLrSG7Oj0sKoTMxwHvM2QGmhcOWh1iFZMRq69ghk6Ijr8 5w/A== MIME-Version: 1.0 Received: by 10.180.100.97 with SMTP id ex1mr10853403wib.17.1352079769017; Sun, 04 Nov 2012 17:42:49 -0800 (PST) Received: by 10.194.33.42 with HTTP; Sun, 4 Nov 2012 17:42:48 -0800 (PST) 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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(+) static inline void freezer_do_not_count(void) {} -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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; }