aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/ntfs3/ntfs.h
diff options
context:
space:
mode:
authorKari Argillander <kari.argillander@gmail.com>2021-09-02 19:15:22 +0300
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2021-09-13 19:41:44 +0300
commit4dfe83320e1e9665b986840b426742ea764e08d7 (patch)
tree18d13f8fd006468d6f5f63f78b48def627883a87 /fs/ntfs3/ntfs.h
parentfs/ntfs3. Add forward declarations for structs to debug.h (diff)
downloadwireguard-linux-4dfe83320e1e9665b986840b426742ea764e08d7.tar.xz
wireguard-linux-4dfe83320e1e9665b986840b426742ea764e08d7.zip
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>
Diffstat (limited to 'fs/ntfs3/ntfs.h')
-rw-r--r--fs/ntfs3/ntfs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ntfs3/ntfs.h b/fs/ntfs3/ntfs.h
index 6bb3e595263b..695b684bce20 100644
--- a/fs/ntfs3/ntfs.h
+++ b/fs/ntfs3/ntfs.h
@@ -10,6 +10,15 @@
#ifndef _LINUX_NTFS3_NTFS_H
#define _LINUX_NTFS3_NTFS_H
+#include <linux/blkdev.h>
+#include <linux/build_bug.h>
+#include <linux/kernel.h>
+#include <linux/stddef.h>
+#include <linux/string.h>
+#include <linux/types.h>
+
+#include "debug.h"
+
/* TODO: Check 4K MFT record and 512 bytes cluster. */
/* Activate this define to use binary search in indexes. */