Re: [PATCH] backports: fix timekeeping ktime_get_raw_ts64 compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/2/21 2:29 PM, Daze Urey wrote:
 From 7c615a7077e37ca5fc3ba5ad7ebe41441521fcd5 Mon Sep 17 00:00:00 2001
From: lunaticurey <125438787@xxxxxx <mailto:125438787@xxxxxx>>
Date: Tue, 2 Feb 2021 21:23:53 +0800
Subject: [PATCH] backports: fix timekeeping ktime_get_raw_ts64 in
 kernel under 3.19 we should use struct timespec instead of timespec64 . this  can fix compile in linux 3.18 t Signed-off-by: lunaticurey <125438787@xxxxxx <mailto:125438787@xxxxxx>>

Signed-off-by: lunaticurey <125438787@xxxxxx <mailto:125438787@xxxxxx>>

Hi,

It looks like this mail is white space damaged. I would suggest to use git send-email to send patches, this takes care that it is correctly send.

Please use your real name in the Signed-off-by line.

The change itself looks good to me.

Hauke


---
  backport/backport-include/linux/timekeeping.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/backport-include/linux/timekeeping.h b/backport/backport-include/linux/timekeeping.h
index 25ceaf3..fc2b75e 100644
--- a/backport/backport-include/linux/timekeeping.h
+++ b/backport/backport-include/linux/timekeeping.h
@@ -88,7 +88,7 @@ static inline struct timespec64 timespec_to_timespec64(const struct timespec ts)
  static inline void ktime_get_raw_ts64(struct timespec64 *ts)
  {
  #if LINUX_VERSION_IS_LESS(3,19,0)
- struct timespec64 ts64;
+ struct timespec ts64;

   getrawmonotonic(&ts64);
   *ts = timespec_to_timespec64(ts64);
--
2.1.4


--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux