* [PATCH] PM / Hibernate: Remove unused parameter of enough_swap
@ 2018-01-16 1:19 Kyungsik Lee
2018-01-18 21:36 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Kyungsik Lee @ 2018-01-16 1:19 UTC (permalink / raw)
To: Rafael J. Wysocki, Pavel Machek, Len Brown
Cc: linux-pm, linux-kernel, chan.jeong, raphael.andy.lee, Kyungsik Lee
Parameter flags is no longer used, remove it.
Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>
---
kernel/power/swap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 293ead5..a46be12 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -879,7 +879,7 @@ static int save_image_lzo(struct swap_map_handle *handle,
* space avaiable from the resume partition.
*/
-static int enough_swap(unsigned int nr_pages, unsigned int flags)
+static int enough_swap(unsigned int nr_pages)
{
unsigned int free_swap = count_swap_pages(root_swap, 1);
unsigned int required;
@@ -915,7 +915,7 @@ int swsusp_write(unsigned int flags)
return error;
}
if (flags & SF_NOCOMPRESS_MODE) {
- if (!enough_swap(pages, flags)) {
+ if (!enough_swap(pages)) {
pr_err("Not enough free swap\n");
error = -ENOSPC;
goto out_finish;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PM / Hibernate: Remove unused parameter of enough_swap
2018-01-16 1:19 [PATCH] PM / Hibernate: Remove unused parameter of enough_swap Kyungsik Lee
@ 2018-01-18 21:36 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2018-01-18 21:36 UTC (permalink / raw)
To: Kyungsik Lee
Cc: Rafael J. Wysocki, Len Brown, linux-pm, linux-kernel, chan.jeong,
raphael.andy.lee
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
On Tue 2018-01-16 10:19:43, Kyungsik Lee wrote:
> Parameter flags is no longer used, remove it.
>
> Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-18 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 1:19 [PATCH] PM / Hibernate: Remove unused parameter of enough_swap Kyungsik Lee
2018-01-18 21:36 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).