From: Maciej Wereski Date: Fri, 17 Apr 2015 13:55:55 +0000 (+0200) Subject: [kdbus] New functions as wrappers of their 3.10 counterparts X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cf21dbb265781f320c06968ce0cc7a0fda6c964;p=platform%2Fkernel%2Flinux-3.10.git [kdbus] New functions as wrappers of their 3.10 counterparts Change-Id: I78aa8e359bd840049d6098b683e138898724aa95 Signed-off-by: Maciej Wereski --- diff --git a/compat/include/linux/time64.h b/compat/include/linux/time64.h new file mode 100644 index 0000000..745bccb --- /dev/null +++ b/compat/include/linux/time64.h @@ -0,0 +1,23 @@ +#ifndef _LINUX_TIME64_H +#define _LINUX_TIME64_H + +#include +#include + +/* copied from struct timespec */ +struct timespec64 { + __kernel_time_t tv_sec; /* seconds */ + long tv_nsec; /* nanoseconds */ +}; + +static inline void ktime_get_ts64(struct timespec64 *ts) +{ + ktime_get_ts((struct timespec *)ts); +} + +static inline s64 timespec64_to_ns(const struct timespec64 *ts) +{ + return (s64) timespec_to_ns((struct timespec *)ts); +} + +#endif /* _LINUX_TIME64_H */ diff --git a/compat/include/linux/uio.h b/compat/include/linux/uio.h index 7188029..b691aa5 100644 --- a/compat/include/linux/uio.h +++ b/compat/include/linux/uio.h @@ -12,6 +12,9 @@ #include #include +/* other compatibility headers */ +#include + struct page; struct kvec {