Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/ntfs3: Add missing header files to ntfs.h

We do not have header files at all in this file. Add following headers
and there is also explanation which for it was added. Note that
explanation might not be complete, but it just proofs it is needed.

<linux/blkdev.h> // SECTOR_SHIFT
<linux/build_bug.h> // static_assert()
<linux/kernel.h> // cpu_to_le64, cpu_to_le32, ALIGN
<linux/stddef.h> // offsetof()
<linux/string.h> // memcmp()
<linux/types.h> //__le32, __le16

"debug.h" // PtrOffset(), Add2Ptr()

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>

authored by

Kari Argillander and committed by
Konstantin Komarov
4dfe8332 cde81f13

+9
+9
fs/ntfs3/ntfs.h
··· 10 10 #ifndef _LINUX_NTFS3_NTFS_H 11 11 #define _LINUX_NTFS3_NTFS_H 12 12 13 + #include <linux/blkdev.h> 14 + #include <linux/build_bug.h> 15 + #include <linux/kernel.h> 16 + #include <linux/stddef.h> 17 + #include <linux/string.h> 18 + #include <linux/types.h> 19 + 20 + #include "debug.h" 21 + 13 22 /* TODO: Check 4K MFT record and 512 bytes cluster. */ 14 23 15 24 /* Activate this define to use binary search in indexes. */