Skip to content

Commit f7e52d8

Browse files
committed
libceph: remove now unused ceph_{en,de}code_timespec()
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
1 parent 0ed1e90 commit f7e52d8

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

‎include/linux/ceph/decode.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,18 +214,6 @@ static inline void ceph_encode_timespec64(struct ceph_timespec *tv,
214214
tv->tv_sec = cpu_to_le32((u32)ts->tv_sec);
215215
tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec);
216216
}
217-
static inline void ceph_decode_timespec(struct timespec *ts,
218-
const struct ceph_timespec *tv)
219-
{
220-
ts->tv_sec = (__kernel_time_t)le32_to_cpu(tv->tv_sec);
221-
ts->tv_nsec = (long)le32_to_cpu(tv->tv_nsec);
222-
}
223-
static inline void ceph_encode_timespec(struct ceph_timespec *tv,
224-
const struct timespec *ts)
225-
{
226-
tv->tv_sec = cpu_to_le32((u32)ts->tv_sec);
227-
tv->tv_nsec = cpu_to_le32((u32)ts->tv_nsec);
228-
}
229217

230218
/*
231219
* sockaddr_storage <-> ceph_sockaddr

0 commit comments

Comments
 (0)