Skip to content

Commit ffe718c

Browse files
fs/ntfs3: Fix sparse warning for bigendian
Fixes: 220cf04 ("fs/ntfs3: Simplify initialization of $AttrDef and $UpCase") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202404181111.Wz8a1qX6-lkp@intel.com/ Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
1 parent e4a7d60 commit ffe718c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

fs/ntfs3/super.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,11 +1491,10 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
14911491

14921492
#ifdef __BIG_ENDIAN
14931493
{
1494-
const __le16 *src = sbi->upcase;
14951494
u16 *dst = sbi->upcase;
14961495

14971496
for (i = 0; i < 0x10000; i++)
1498-
*dst++ = le16_to_cpu(*src++);
1497+
__swab16s(dst++);
14991498
}
15001499
#endif
15011500

0 commit comments

Comments
 (0)