From patchwork Tue Jul 14 08:23:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fengguang Wu X-Patchwork-Id: 6784391 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6E1CE9F380 for ; Tue, 14 Jul 2015 08:24:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A46F520752 for ; Tue, 14 Jul 2015 08:24:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBA962075F for ; Tue, 14 Jul 2015 08:24:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbbGNIYl (ORCPT ); Tue, 14 Jul 2015 04:24:41 -0400 Received: from mga11.intel.com ([192.55.52.93]:55908 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752049AbbGNIYj (ORCPT ); Tue, 14 Jul 2015 04:24:39 -0400 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 14 Jul 2015 01:24:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,470,1432623600"; d="scan'208";a="523919219" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jul 2015 01:24:37 -0700 Received: from kbuild by bee with local (Exim 4.83) (envelope-from ) id 1ZEvVr-000CGk-6V; Tue, 14 Jul 2015 16:24:27 +0800 Date: Tue, 14 Jul 2015 16:23:38 +0800 From: kbuild test robot To: Chen Yu Cc: kbuild-all@01.org, "Rafael J. Wysocki" , "Lee, Chun-Yi" , linux-pm@vger.kernel.org, Pavel Machek , Len Brown , linux-kernel@vger.kernel.org Subject: [PATCH pm] PM / hibernate: swsusp_page_is_valid() can be static Message-ID: <20150714082338.GA66904@snb> References: <201507141612.6eLYehfL%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201507141612.6eLYehfL%fengguang.wu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Fengguang Wu --- snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/kernel/power/snapshot.c b/kernel/power/snapshot.c index ebbb995..0e4112f4 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -925,7 +925,7 @@ static void swsusp_unset_page_forbidden(struct page *page) memory_bm_clear_bit(forbidden_pages_map, page_to_pfn(page)); } -int swsusp_page_is_valid(struct page *page) +static int swsusp_page_is_valid(struct page *page) { return valid_pages_map ? memory_bm_test_bit(valid_pages_map, page_to_pfn(page)) : 0;