btrfs: make btrfs_compressed_bioset static
PATCH 1/1 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?
--- fs/btrfs/compression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/compression.c +1 -1
@@ -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" };
Signature · 1 line
2.39.2
Quoted 6 lines · Ben Dooks
The '
btrfs_compressed_bioset' struct isn't exported outside of thefs/btrfs/compression.cfile, 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?
Looks good:
Quoted 7 lines · Ben Dooks
The '
btrfs_compressed_bioset' struct isn't exported outside of thefs/btrfs/compression.cfile, 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?Signed-off-by Ben Dooks <[email protected]>
Added to misc-next, thanks.