From mboxrd@z Thu Jan 1 00:00:00 1970 From: Qu Wenruo Date: Wed, 27 Jan 2021 17:46:31 +0800 Subject: [PATCH] fs: btrfs: Select SHA256 in Kconfig In-Reply-To: <20210127094231.11740-1-matthias.bgg@kernel.org> References: <20210127094231.11740-1-matthias.bgg@kernel.org> Message-ID: <2e1865ff-af6e-feec-a224-2364dbb80a0c@gmx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2021/1/27 ??5:42, matthias.bgg at kernel.org wrote: > From: Matthias Brugger > > 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 Oh, forgot to select sha256. Thanks for the fix. Reviewed-by: Qu Wenruo Thanks, Qu > > --- > > 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 >