Message ID | 20150714082338.GA66904@snb (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
> -----Original Message----- > From: Wu, Fengguang > Sent: Tuesday, July 14, 2015 4:24 PM > To: Chen, Yu C > Cc: kbuild-all@01.org; Rafael J. Wysocki; Lee, Chun-Yi; linux- > pm@vger.kernel.org; Pavel Machek; Brown, Len; linux- > kernel@vger.kernel.org > Subject: [PATCH pm] PM / hibernate: swsusp_page_is_valid() can be static > > > Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> > --- > snapshot.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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; OK, thanks Fengguang Best Regards, Yu -- 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;
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- 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