]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84cfeb4217c9fe70a95fa359774c16cfefc00432
tree899ddd926632840e5aacca66c33da43ad3f04081
parent811c9563532e2cf31a995db5da2563f7a35d41b6
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