[PATCH 4/8] fs: move pgoff_t definition to include/linux/types.h
yegorslists at googlemail.com
yegorslists at googlemail.com
Wed Jan 27 03:53:05 PST 2016
From: Yegor Yefremov <yegorslists at googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
fs/ubifs/ubifs.h | 2 --
include/linux/types.h | 5 +++++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 53c0813..9a2d2f5 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -58,8 +58,6 @@ extern unsigned int ubifs_msg_flags;
extern unsigned int ubifs_chk_flags;
extern unsigned int ubifs_tst_flags;
-#define pgoff_t unsigned long
-
/*
* We "simulate" the Linux page struct much simpler here
*/
diff --git a/include/linux/types.h b/include/linux/types.h
index ce1a0ec..9f8eb67 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -157,6 +157,11 @@ typedef __u32 __bitwise __wsum;
#define __aligned_be64 __be64 __attribute__((aligned(8)))
#define __aligned_le64 __le64 __attribute__((aligned(8)))
+/*
+ * The type of an index into the pagecache.
+ */
+#define pgoff_t unsigned long
+
/* A dma_addr_t can hold any valid DMA or bus address for the platform */
#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
typedef u64 dma_addr_t;
--
2.1.4
More information about the barebox
mailing list