this patch,

  https://bugzilla.opensuse.org/show_bug.cgi?id=1127790#c3

--------
diff -ur xtables-addons-3.2.ORIG/extensions/xt_SYSRQ.c 
xtables-addons-3.2/extensions/xt_SYSRQ.c
--- xtables-addons-3.2.ORIG/extensions/xt_SYSRQ.c       2018-09-07 
06:04:28.000000000 -0700
+++ xtables-addons-3.2/extensions/xt_SYSRQ.c    2019-03-04 12:01:16.426428277 
-0800
@@ -314,7 +314,7 @@
 static int __init sysrq_crypto_init(void)
 {
 #if defined(WITH_CRYPTO)
-       struct timeval now;
+       struct timespec64 now;
        int ret;
 
        sysrq_tfm = crypto_alloc_shash(sysrq_hash, 0, 0);
@@ -339,7 +339,10 @@
                    sizeof(sysrq_password), GFP_KERNEL);
        if (sysrq_digest_password == NULL)
                goto fail;
-       do_gettimeofday(&now);
+/* 
https://github.com/torvalds/linux/blob/master/Documentation/core-api/timekeeping.rst
+ * https://gitlab.com/snippets/1799795
+ */
+       ktime_get_real_ts64(&now);
        sysrq_seqno = now.tv_sec;
        return 0;
--------

appears to enable an ok build.

Reply via email to