|
Kmods SIG |
d83023 |
From 4dfe83320e1e9665b986840b426742ea764e08d7 Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
d83023 |
From: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
d83023 |
Date: Thu, 2 Sep 2021 19:15:22 +0300
|
|
Kmods SIG |
d83023 |
Subject: [Backport 4dfe83320e1e] src: Add missing header files to ntfs.h
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
We do not have header files at all in this file. Add following headers
|
|
Kmods SIG |
d83023 |
and there is also explanation which for it was added. Note that
|
|
Kmods SIG |
d83023 |
explanation might not be complete, but it just proofs it is needed.
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
<linux/blkdev.h> // SECTOR_SHIFT
|
|
Kmods SIG |
d83023 |
<linux/build_bug.h> // static_assert()
|
|
Kmods SIG |
d83023 |
<linux/kernel.h> // cpu_to_le64, cpu_to_le32, ALIGN
|
|
Kmods SIG |
d83023 |
<linux/stddef.h> // offsetof()
|
|
Kmods SIG |
d83023 |
<linux/string.h> // memcmp()
|
|
Kmods SIG |
d83023 |
<linux/types.h> //__le32, __le16
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
"debug.h" // PtrOffset(), Add2Ptr()
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
|
|
Kmods SIG |
d83023 |
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
|
|
Kmods SIG |
d83023 |
---
|
|
Kmods SIG |
d83023 |
src/ntfs.h | 9 +++++++++
|
|
Kmods SIG |
d83023 |
1 file changed, 9 insertions(+)
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
diff --git a/src/ntfs.h b/src/ntfs.h
|
|
Kmods SIG |
d83023 |
index 6bb3e595263b67c7cc66a0fecc5dfa68310826d4..695b684bce20dd4f274884ba9a1022555b47823a 100644
|
|
Kmods SIG |
d83023 |
--- a/src/ntfs.h
|
|
Kmods SIG |
d83023 |
+++ b/src/ntfs.h
|
|
Kmods SIG |
d83023 |
@@ -10,6 +10,15 @@
|
|
Kmods SIG |
d83023 |
#ifndef _LINUX_NTFS3_NTFS_H
|
|
Kmods SIG |
d83023 |
#define _LINUX_NTFS3_NTFS_H
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
+#include <linux/blkdev.h>
|
|
Kmods SIG |
d83023 |
+#include <linux/build_bug.h>
|
|
Kmods SIG |
d83023 |
+#include <linux/kernel.h>
|
|
Kmods SIG |
d83023 |
+#include <linux/stddef.h>
|
|
Kmods SIG |
d83023 |
+#include <linux/string.h>
|
|
Kmods SIG |
d83023 |
+#include <linux/types.h>
|
|
Kmods SIG |
d83023 |
+
|
|
Kmods SIG |
d83023 |
+#include "debug.h"
|
|
Kmods SIG |
d83023 |
+
|
|
Kmods SIG |
d83023 |
/* TODO: Check 4K MFT record and 512 bytes cluster. */
|
|
Kmods SIG |
d83023 |
|
|
Kmods SIG |
d83023 |
/* Activate this define to use binary search in indexes. */
|
|
Kmods SIG |
d83023 |
--
|
|
Kmods SIG |
d83023 |
2.31.1
|
|
Kmods SIG |
d83023 |
|