[PATCH 1/3] fs: move struct timespec to include/linux/time.h
yegorslists at googlemail.com
yegorslists at googlemail.com
Tue Jan 26 02:38:35 PST 2016
From: Yegor Yefremov <yegorslists at googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
---
fs/ubifs/ubifs.h | 7 -------
include/linux/time.h | 5 +++++
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index c025d34..6b7139c 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -77,13 +77,6 @@ void iput(struct inode *inode);
#define atomic_long_dec(a)
#define atomic_long_sub(a, b)
-/* linux/include/time.h */
-
-struct timespec {
- time_t tv_sec; /* seconds */
- long tv_nsec; /* nanoseconds */
-};
-
/* linux/include/dcache.h */
/*
diff --git a/include/linux/time.h b/include/linux/time.h
index 3942e82..3a1bb50 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -5,4 +5,9 @@
#define NSEC_PER_SEC 1000000000L
+struct timespec {
+ time_t tv_sec; /* seconds */
+ long tv_nsec; /* nanoseconds */
+};
+
#endif
--
2.1.4
More information about the barebox
mailing list