diff options
author | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-12-21 13:59:43 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2023-12-21 14:25:40 +0300 |
commit | 4cdfb6e7bc9c80142d33bf1d4653a73fa678ba56 (patch) | |
tree | 4a38dfc00d3279c8cf7f5f03ffc0246e5409ff8b /fs/ntfs3/ntfs.h | |
parent | 652483bfbc45137e8dce556c9ddbd4458dad4452 (diff) |
fs/ntfs3: Disable ATTR_LIST_ENTRY size check
The use of sizeof(struct ATTR_LIST_ENTRY) has been replaced with le_size(0)
due to alignment peculiarities on different platforms.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202312071005.g6YrbaIe-lkp@intel.com/
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/ntfs.h')
-rw-r--r-- | fs/ntfs3/ntfs.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ntfs3/ntfs.h b/fs/ntfs3/ntfs.h index c8981429c721..9c7478150a03 100644 --- a/fs/ntfs3/ntfs.h +++ b/fs/ntfs3/ntfs.h @@ -527,8 +527,6 @@ struct ATTR_LIST_ENTRY { }; // sizeof(0x20) -static_assert(sizeof(struct ATTR_LIST_ENTRY) == 0x20); - static inline u32 le_size(u8 name_len) { return ALIGN(offsetof(struct ATTR_LIST_ENTRY, name) + |