Hello,

On Tue, 18 Aug 2020 16:31:16 +0200
Joao Marcos Costa <joaomarcos.co...@bootlin.com> wrote:

> +#if IS_ENABLED(CONFIG_ZSTD)
> +static int sqfs_zstd_decompress(void *dest, unsigned long dest_len,
> +                             void *source, u32 src_len)

Pass the squashfs_context structure as argument to the decompressor
function, so that sqfs_ctxt doesn't need to be a global variable.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Reply via email to