
18 Aug
2020
18 Aug
'20
4:34 p.m.
Hello,
In your commit title: spurious . after "init".
On Tue, 18 Aug 2020 16:31:15 +0200 Joao Marcos Costa joaomarcos.costa@bootlin.com wrote:
-static struct squashfs_ctxt ctxt; +struct squashfs_ctxt sqfs_ctxt;
Why are you dropping the "static" here ? This symbol only needs to be visible from that file. If you keep the "static" keyword, you can keep the variable named "ctxt" and avoid a lengthy patch.
- ret = sqfs_decompressor_init(&sqfs_ctxt);
See you're passing a reference to the squashfs context here, so this variable does not need to be visible by other files.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com