fs: btrfs: Select SHA256 in Kconfig

Since commit 565a4147d1 ("fs: btrfs: Add more checksum algorithms")
btrfs uses the sha256 checksum algorithm. But Kconfig lacks to select
it. This leads to compilation errors:
fs/built-in.o: In function `hash_sha256':
fs/btrfs/crypto/hash.c:25: undefined reference to `sha256_starts'
fs/btrfs/crypto/hash.c:26: undefined reference to `sha256_update'
fs/btrfs/crypto/hash.c:27: undefined reference to `sha256_finish'

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
This commit is contained in:
Matthias Brugger 2021-01-27 10:42:30 +01:00 committed by Tom Rini
parent 84ca3055f0
commit 8921ac9747

View file

@ -4,6 +4,7 @@ config FS_BTRFS
select LZO select LZO
select ZSTD select ZSTD
select RBTREE select RBTREE
select SHA256
help help
This provides a single-device read-only BTRFS support. BTRFS is a This provides a single-device read-only BTRFS support. BTRFS is a
next-generation Linux file system based on the copy-on-write next-generation Linux file system based on the copy-on-write