Skip to content

Commit

Permalink
btrfs: make btrfs_compressed_bioset static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
  • Loading branch information
bjdooks-ct authored and kdave committed Jun 19, 2023
1 parent 160fe8f commit e794203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/compression.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" };

Expand Down

0 comments on commit e794203

Please sign in to comment.