Skip to content

Commit e794203

Browse files
bjdooks-ctkdave
authored andcommitted
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 <hch@lst.de> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 160fe8f commit e794203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/compression.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include "file-item.h"
3838
#include "super.h"
3939

40-
struct bio_set btrfs_compressed_bioset;
40+
static struct bio_set btrfs_compressed_bioset;
4141

4242
static const char* const btrfs_compress_types[] = { "", "zlib", "lzo", "zstd" };
4343

0 commit comments

Comments
 (0)