diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /sys-block/rts_pstor/files | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'sys-block/rts_pstor/files')
-rw-r--r-- | sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch b/sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch new file mode 100644 index 000000000000..7ea6ba6fd26b --- /dev/null +++ b/sys-block/rts_pstor/files/fix-compile-kernel-5.0.0.patch @@ -0,0 +1,36 @@ +--- a/rtsx.h ++++ b/rtsx.h +@@ -81,6 +81,17 @@ + pci_get_domain_bus_and_slot(0, (bus), (devfn)) + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) ++static void do_gettimeofday(struct timeval *tv) ++{ ++ struct timespec64 now; ++ ++ ktime_get_real_ts64(&now); ++ tv->tv_sec = now.tv_sec; ++ tv->tv_usec = now.tv_nsec / 1000; ++} ++#endif ++ + /* + * macros for easy use + */ +--- a/rtsx.c ++++ b/rtsx.c +@@ -300,11 +300,13 @@ + + .max_sectors = 240, + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0) + /* merge commands... this seems to help performance, but + * periodically someone should test to see which setting is more + * optimal. + */ + .use_clustering = 1, ++#endif + + + .emulated = 1, |