From: Simon Horman <horms@kernel.org>
To: Jeremy Linton <jeremy.linton@arm.com>
Cc: kexec@lists.infradead.org, piliu@redhat.com, dyoung@redhat.com
Subject: Re: [Patch v2 2/2] kexec: Enable zstd in kexec decompression paths
Date: Fri, 13 Dec 2024 12:46:27 +0000 [thread overview]
Message-ID: <20241213124507.GY2110@kernel.org> (raw)
In-Reply-To: <20241212211325.805138-3-jeremy.linton@arm.com>
[Dropped arb@kernel.org: mail.kernel.org refuses to accept my email otherwise]
On Thu, Dec 12, 2024 at 03:13:25PM -0600, Jeremy Linton wrote:
> The kexec decompression routines support detecting zlib or lzma
> compressed images. Lets add the ability to automatically decompress
> zstd ones as well. The zstd attempt is made after gzip because its
> fairly inexpensive relative lzma, and gzip remains a popular option.
>
> Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
> Acked-by: Pingfan Liu <piliu@redhat.com>
Thanks, applied.
When doing so I removed the trailing whitespace which I have noted below.
...
> diff --git a/kexec/kexec.c b/kexec/kexec.c
...
> @@ -639,9 +640,12 @@ char *slurp_decompress_file(const char *filename, off_t *r_size)
>
> kernel_buf = zlib_decompress_file(filename, r_size);
> if (!kernel_buf) {
> - kernel_buf = lzma_decompress_file(filename, r_size);
> - if (!kernel_buf)
> - return slurp_file(filename, r_size);
> + kernel_buf = zstd_decompress_file(filename, r_size);
Trailing whitespace on the line above.
> + if (!kernel_buf) {
> + kernel_buf = lzma_decompress_file(filename, r_size);
> + if (!kernel_buf)
> + return slurp_file(filename, r_size);
> + }
> }
> return kernel_buf;
> }
> --
> 2.47.0
>
prev parent reply other threads:[~2024-12-13 12:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 21:13 [Patch v2 0/2] ZBOOT zstd support Jeremy Linton
2024-12-12 21:13 ` [Patch v2 1/2] zstd: Add zstd decompression logic Jeremy Linton
2024-12-13 12:46 ` Simon Horman
2024-12-12 21:13 ` [Patch v2 2/2] kexec: Enable zstd in kexec decompression paths Jeremy Linton
2024-12-13 12:46 ` Simon Horman [this message]
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=20241213124507.GY2110@kernel.org \
--to=horms@kernel.org \
--cc=dyoung@redhat.com \
--cc=jeremy.linton@arm.com \
--cc=kexec@lists.infradead.org \
--cc=piliu@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.