linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mario Limonciello (AMD)" <superm1@kernel.org>
To: mario.limonciello@amd.com, lenb@kernel.org, pavel@kernel.org,
	rafael@kernel.org
Cc: "Mario Limonciello (AMD)" <superm1@kernel.org>, linux-pm@vger.kernel.org
Subject: [PATCH 3/3] PM: hibernate: Fix style issues in save_compressed_image()
Date: Wed,  5 Nov 2025 22:51:07 -0600	[thread overview]
Message-ID: <20251106045158.3198061-4-superm1@kernel.org> (raw)
In-Reply-To: <20251106045158.3198061-1-superm1@kernel.org>

Fix the two issues caught by checkpatch:
	Trailing statements should be on next line.
	Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
---
 kernel/power/swap.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 37270fa5ea600..488a74d2a56b8 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -689,7 +689,7 @@ static int save_compressed_image(struct swap_map_handle *handle,
 	ktime_t start;
 	ktime_t stop;
 	size_t off;
-	unsigned thr, run_threads, nr_threads;
+	unsigned int thr, run_threads, nr_threads;
 	unsigned char *page = NULL;
 	struct cmp_data *data = NULL;
 	struct crc_data *crc = NULL;
@@ -901,7 +901,8 @@ static int save_compressed_image(struct swap_map_handle *handle,
 		}
 		vfree(data);
 	}
-	if (page) free_page((unsigned long)page);
+	if (page)
+		free_page((unsigned long)page);
 
 	return ret;
 }
-- 
2.43.0


  parent reply	other threads:[~2025-11-06  4:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-06  4:51 [PATCH 0/3] Fixups for hibernate issues reported by Askar Safin Mario Limonciello (AMD)
2025-11-06  4:51 ` [PATCH 1/3] PM: hibernate: Emit an error when image writing fails Mario Limonciello (AMD)
2025-11-06 19:54   ` Askar Safin
2025-11-06  4:51 ` [PATCH 2/3] PM: hibernate: Use atomic64_t for compressed_size variable Mario Limonciello (AMD)
2025-11-06 20:01   ` Askar Safin
2025-11-07 15:56   ` Rafael J. Wysocki
2025-11-06  4:51 ` Mario Limonciello (AMD) [this message]
2025-11-06 20:03 ` [PATCH 0/3] Fixups for hibernate issues reported by Askar Safin Askar Safin
2025-11-06 20:56   ` Mario Limonciello

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251106045158.3198061-4-superm1@kernel.org \
    --to=superm1@kernel.org \
    --cc=lenb@kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=pavel@kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).