From: Jens Wiklander <jens.wiklander@linaro.org> Date: Mon, 22 May 2023 12:22:36 +0000 (+0200) Subject: fs/btrfs: use asm/unaligned.h X-Git-Tag: v2025.01-rc5-pxa1908~950^2~26^2~2 X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/%7B%7B?a=commitdiff_plain;h=6ba08b3f56c93d2e97e5be3e9deccadd1e8c0796;p=u-boot.git fs/btrfs: use asm/unaligned.h Use asm/unaligned.h instead of linux/unaligned/access_ok.h for unaligned access. This is needed on architectures that doesn't handle unaligned accesses directly. Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> --- diff --git a/fs/btrfs/crypto/hash.c b/fs/btrfs/crypto/hash.c index 891a2974be..0a0b35fe9b 100644 --- a/fs/btrfs/crypto/hash.c +++ b/fs/btrfs/crypto/hash.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <asm/unaligned.h> #include <linux/xxhash.h> -#include <linux/unaligned/access_ok.h> #include <linux/types.h> #include <u-boot/sha256.h> #include <u-boot/blake2.h>