Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751379AbdHMIbo (ORCPT ); Sun, 13 Aug 2017 04:31:44 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36961 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750922AbdHMIbm (ORCPT ); Sun, 13 Aug 2017 04:31:42 -0400 MIME-Version: 1.0 In-Reply-To: <20170804201921.156890-5-terrelln@fb.com> References: <20170804201921.156890-1-terrelln@fb.com> <20170804201921.156890-5-terrelln@fb.com> From: Geert Uytterhoeven Date: Sun, 13 Aug 2017 10:31:41 +0200 X-Google-Sender-Auth: a_hJCCppKDLav4DeXUKUM-lZVIE Message-ID: Subject: Re: [PATCH v4 4/5] squashfs: Add zstd support To: Nick Terrell Cc: "Austin S . Hemmelgarn" , Herbert Xu , kernel-team@fb.com, Chris Mason , Yann Collet , Adam Borowski , David Sterba , squashfs-devel@lists.sourceforge.net, linux-btrfs , "linux-kernel@vger.kernel.org" , Phillip Lougher , Sean Purcell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 41 On Fri, Aug 4, 2017 at 10:19 PM, Nick Terrell wrote: > --- a/fs/squashfs/decompressor.c > +++ b/fs/squashfs/decompressor.c > @@ -65,6 +65,12 @@ static const struct squashfs_decompressor squashfs_zlib_comp_ops = { > }; > #endif > > +#ifndef CONFIG_SQUASHFS_ZSTD > +static const struct squashfs_decompressor squashfs_zstd_comp_ops = { > + NULL, NULL, NULL, NULL, ZSTD_COMPRESSION, "zstd", 0 Can you please use designated initializers? > +}; > +#endif > + > static const struct squashfs_decompressor squashfs_unknown_comp_ops = { > NULL, NULL, NULL, NULL, 0, "unknown", 0 > ; > +const struct squashfs_decompressor squashfs_zstd_comp_ops = { > + .init = zstd_init, > + .free = zstd_free, > + .decompress = zstd_uncompress, > + .id = ZSTD_COMPRESSION, > + .name = "zstd", > + .supported = 1 > +}; ... like you did here. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds