Unverified Commit ffe718c9 authored by Konstantin Komarov's avatar Konstantin Komarov
Browse files

fs/ntfs3: Fix sparse warning for bigendian



Fixes: 220cf049 ("fs/ntfs3: Simplify initialization of $AttrDef and $UpCase")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404181111.Wz8a1qX6-lkp@intel.com/


Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
parent e4a7d60a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1491,11 +1491,10 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)

#ifdef __BIG_ENDIAN
	{
		const __le16 *src = sbi->upcase;
		u16 *dst = sbi->upcase;

		for (i = 0; i < 0x10000; i++)
			*dst++ = le16_to_cpu(*src++);
			__swab16s(dst++);
	}
#endif