summaryrefslogtreecommitdiff
path: root/ubifs-utils/common/crypto.c
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2024-11-11 16:36:42 +0800
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-11-11 10:32:45 +0100
commit583125d58cc604ba8bb3cdca1656c7f973fae69c (patch)
tree3e203e2b8f6b78fc88ac20c2271a796ed38fdc46 /ubifs-utils/common/crypto.c
parent50f9259befe1b94ee991ae390b7c84b21f4dbb88 (diff)
ubifs-utils: Add linux type definitions
Add linux type definitions, because there are many types (eg. u8/u16/u64) used in UBIFS linux kernel libs. Besides move type conversions (eg. cpu_to_le16, cpu_to_le32, etc.) into type definitions header file. This is a preparation for replacing implementation of UBIFS utils with linux kernel libs. Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'ubifs-utils/common/crypto.c')
-rw-r--r--ubifs-utils/common/crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ubifs-utils/common/crypto.c b/ubifs-utils/common/crypto.c
index 2ecd8da..e4ef349 100644
--- a/ubifs-utils/common/crypto.c
+++ b/ubifs-utils/common/crypto.c
@@ -23,6 +23,7 @@
#include <string.h>
#include <assert.h>
+#include "linux_types.h"
#include "fscrypt.h"
#include "defs.h"
#include "ubifs.h"