diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-08-19 16:24:59 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2024-09-03 16:58:40 +0300 |
commit | ffe718c9924eb7e4ce062dd383cf5fea7f02f180 (patch) | |
tree | d11eac7d80161868c95645960478f3e0fa81756f | |
parent | e4a7d60a891b8493a1284053acdc496febe81e7c (diff) |
fs/ntfs3: Fix sparse warning for bigendian
Fixes: 220cf0498bbf ("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>
-rw-r--r-- | fs/ntfs3/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index a8758b85803f..28fed4072f67 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -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 |