http://bugzilla.opensuse.org/show_bug.cgi?id=1127790
http://bugzilla.opensuse.org/show_bug.cgi?id=1127790#c3
--- Comment #3 from pgnd _ ---
this patch, using the ktime_get_real_ts64() 'direct replacement',
----------------------
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/timekee...
+ * https://gitlab.com/snippets/1799795
+ */
+ ktime_get_real_ts64(&now);
sysrq_seqno = now.tv_sec;
return 0;
----------------------
enables a _successful_ build. Whether that's the _correct_ sub is another
question ...
--
You are receiving this mail because:
You are on the CC list for the bug.