OSDN Git Service

btrfs: compression: move declarations to header
authorDavid Sterba <dsterba@suse.com>
Mon, 17 Aug 2020 08:58:38 +0000 (10:58 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:55 +0000 (12:06 +0200)
commitcb4c9198302b02c3f0eaf4267636e5ce1f4a4765
tree899ddd926632840e5aacca66c33da43ad3f04081
parent9e6df7cedfdf3e2469aa46fb772ca70b422132ec
btrfs: compression: move declarations to header

The declarations of compression algorithm callbacks are defined in the
.c file as they're used from there. Compiler warns that there are no
declarations for public functions when compiling lzo.c/zlib.c/zstd.c.
Fix that by moving the declarations to the header as it's the common
place for all of them.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h