From: Thomas Petazzoni Date: Tue, 18 Aug 2020 16:35:27 +0200 Subject: [PATCH v3 2/4] fs/squashfs: add support for ZSTD decompression In-Reply-To: <20200818143118.16422-3-joaomarcos.costa@bootlin.com> References: <20200818143118.16422-1-joaomarcos.costa@bootlin.com> <20200818143118.16422-3-joaomarcos.costa@bootlin.com> Message-ID: <20200818163527.12d5b741@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, On Tue, 18 Aug 2020 16:31:16 +0200 Joao Marcos Costa 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