From: Ben Dooks Date: Fri, 16 Jun 2023 17:24:43 +0000 (+0100) Subject: btrfs: make btrfs_compressed_bioset static X-Git-Tag: configfs-6.13-2024-11-19~3878^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e794203e9d2d610faf6c5926345091193b202af5;p=users%2Fhch%2Fconfigfs.git btrfs: make btrfs_compressed_bioset static The 'btrfs_compressed_bioset' struct isn't exported outside of the fs/btrfs/compression.c file, so make it static to fix the following sparse warning: fs/btrfs/compression.c:40:16: warning: symbol 'btrfs_compressed_bioset' was not declared. Should it be static? Reviewed-by: Christoph Hellwig Signed-off-by: Ben Dooks Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index f1004259c3d3..8818ed5c390f 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -37,7 +37,7 @@ #include "file-item.h" #include "super.h" -struct bio_set btrfs_compressed_bioset; +static struct bio_set btrfs_compressed_bioset; static const char* const btrfs_compress_types[] = { "", "zlib", "lzo", "zstd" };