From: David Sterba Date: Wed, 27 Jan 2021 14:47:58 +0100 Subject: [PATCH] fs: btrfs: Select SHA256 in Kconfig In-Reply-To: <5ae76d50-a52d-6f0e-1f23-335cb32f0371@suse.com> References: <20210127094231.11740-1-matthias.bgg@kernel.org> <20210127120146.GZ1993@twin.jikos.cz> <5ae76d50-a52d-6f0e-1f23-335cb32f0371@suse.com> Message-ID: <20210127134758.GA1993@twin.jikos.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jan 27, 2021 at 08:14:31PM +0800, Qu Wenruo wrote: > > > On 2021/1/27 ??8:01, David Sterba wrote: > > On Wed, Jan 27, 2021 at 10:42:30AM +0100, 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 > > > > So this is a fix for u-boot, got me confused and not for the first time > > as there's Kconfig and the same fs/btrfs/ directory structure. > > > Well, sometimes too unified file structure/code base can also be a problem. > > Considering I'm also going to continue cross-porting more code to > U-boot, any recommendation on this? > Using different prefix? If it's a series then please mention u-boot in the cover letter, no need to change the patches, I'll go check CC if I'm too confused about the patch.