Re: svn commit: r334777 - head/sys/compat/linuxkpi/common/include/linux

2018-06-08 Thread Hans Petter Selasky

On 06/08/18 18:51, Ian Lepore wrote:

Will this be a problem on i386, where timespec contains a 32-bit
time_t?  I think it's the only remaining arch with 32-bit time_t.


The LinuxKPI has no need for 64-bit time. These defines are currently 
only used for debug printouts in drm-next-kmod.


--HPS
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r334777 - head/sys/compat/linuxkpi/common/include/linux

2018-06-08 Thread Ian Lepore
On Thu, 2018-06-07 at 11:41 +, Hans Petter Selasky wrote:
> Author: hselasky
> Date: Thu Jun  7 11:41:42 2018
> New Revision: 334777
> URL: https://svnweb.freebsd.org/changeset/base/334777
> 
> Log:
>   Wrap timespec64 into timespec in the LinuxKPI.
>   
>   Submitted by:   Johannes Lundberg 
>   MFC after:  1 week
>   Sponsored by:   Mellanox Technologies
>   Sponsored by:   Limelight Networks
> 
> Modified:
>   head/sys/compat/linuxkpi/common/include/linux/ktime.h
>   head/sys/compat/linuxkpi/common/include/linux/time.h
> 
> Modified: head/sys/compat/linuxkpi/common/include/linux/ktime.h
> =
> =
> --- head/sys/compat/linuxkpi/common/include/linux/ktime.h Thu
> Jun  7 11:40:13 2018  (r334776)
> +++ head/sys/compat/linuxkpi/common/include/linux/ktime.h Thu
> Jun  7 11:41:42 2018  (r334777)
> @@ -159,6 +159,7 @@ timeval_to_ktime(struct timeval tv)
>  }
>  
>  #define  ktime_to_timespec(kt)   ns_to_timespec(k
> t)
> +#define  ktime_to_timespec64(kt) ns_to_timespec
> (kt)
>  #define  ktime_to_timeval(kt)ns_to_timeval(kt)
>  #define  ktime_to_ns(kt) (kt)
>  
> 
> Modified: head/sys/compat/linuxkpi/common/include/linux/time.h
> =
> =
> --- head/sys/compat/linuxkpi/common/include/linux/time.h  Thu
> Jun  7 11:40:13 2018  (r334776)
> +++ head/sys/compat/linuxkpi/common/include/linux/time.h  Thu
> Jun  7 11:41:42 2018  (r334777)
> @@ -35,6 +35,8 @@
>  #define  USEC_PER_MSEC   1000L
>  #define  USEC_PER_SEC100L
>  
> +#define  timespec64 timespec
> +
>  #include 
>  #include 

Will this be a problem on i386, where timespec contains a 32-bit
time_t?  I think it's the only remaining arch with 32-bit time_t.

-- Ian
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r334777 - head/sys/compat/linuxkpi/common/include/linux

2018-06-07 Thread Hans Petter Selasky
Author: hselasky
Date: Thu Jun  7 11:41:42 2018
New Revision: 334777
URL: https://svnweb.freebsd.org/changeset/base/334777

Log:
  Wrap timespec64 into timespec in the LinuxKPI.
  
  Submitted by: Johannes Lundberg 
  MFC after:1 week
  Sponsored by: Mellanox Technologies
  Sponsored by: Limelight Networks

Modified:
  head/sys/compat/linuxkpi/common/include/linux/ktime.h
  head/sys/compat/linuxkpi/common/include/linux/time.h

Modified: head/sys/compat/linuxkpi/common/include/linux/ktime.h
==
--- head/sys/compat/linuxkpi/common/include/linux/ktime.h   Thu Jun  7 
11:40:13 2018(r334776)
+++ head/sys/compat/linuxkpi/common/include/linux/ktime.h   Thu Jun  7 
11:41:42 2018(r334777)
@@ -159,6 +159,7 @@ timeval_to_ktime(struct timeval tv)
 }
 
 #definektime_to_timespec(kt)   ns_to_timespec(kt)
+#definektime_to_timespec64(kt) ns_to_timespec(kt)
 #definektime_to_timeval(kt)ns_to_timeval(kt)
 #definektime_to_ns(kt) (kt)
 

Modified: head/sys/compat/linuxkpi/common/include/linux/time.h
==
--- head/sys/compat/linuxkpi/common/include/linux/time.hThu Jun  7 
11:40:13 2018(r334776)
+++ head/sys/compat/linuxkpi/common/include/linux/time.hThu Jun  7 
11:41:42 2018(r334777)
@@ -35,6 +35,8 @@
 #defineUSEC_PER_MSEC   1000L
 #defineUSEC_PER_SEC100L
 
+#definetimespec64 timespec
+
 #include 
 #include 
 
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"