All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: btrfs: Select SHA256 in Kconfig
@ 2021-01-27  9:42 ` matthias.bgg at kernel.org
  0 siblings, 0 replies; 14+ messages in thread
From: matthias.bgg @ 2021-01-27  9:42 UTC (permalink / raw)
  To: Qu Wenruo, Marek Behun; +Cc: u-boot, linux-btrfs, Matthias Brugger

From: Matthias Brugger <mbrugger@suse.com>

Since commit 565a4147d17a ("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>

---

 fs/btrfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/btrfs/Kconfig b/fs/btrfs/Kconfig
index f302b1fbef..2a32f42ad1 100644
--- a/fs/btrfs/Kconfig
+++ b/fs/btrfs/Kconfig
@@ -4,6 +4,7 @@ config FS_BTRFS
 	select LZO
 	select ZSTD
 	select RBTREE
+	select SHA256
 	help
 	  This provides a single-device read-only BTRFS support. BTRFS is a
 	  next-generation Linux file system based on the copy-on-write
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-01-30 19:22 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27  9:42 [PATCH] fs: btrfs: Select SHA256 in Kconfig matthias.bgg
2021-01-27  9:42 ` matthias.bgg at kernel.org
2021-01-27  9:46 ` Qu Wenruo
2021-01-27  9:46   ` Qu Wenruo
2021-01-27 12:01 ` David Sterba
2021-01-27 12:01   ` David Sterba
2021-01-27 12:14   ` Qu Wenruo
2021-01-27 12:14     ` Qu Wenruo
2021-01-27 13:47     ` David Sterba
2021-01-27 13:47       ` David Sterba
2021-01-27 13:57       ` Marek Behun
2021-01-27 13:57         ` Marek Behun
2021-01-30 19:21 ` Tom Rini
2021-01-30 19:21   ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.