oracleasm/oracleasm-handle-compat_timespec.patch

22 lines
788 B
Diff
Raw Permalink Normal View History

From: "Lee Duncan" <lduncan@suse.com>
Date: Fri 17 Sep 2021 08:32:32 AM PDT
Subject: [PATCH] oracleasm: handle compat_timespec
The define for compat_timespec has been removed,
so re-add it for oracleasm.
---
diff -aurp a/drivers/block/oracleasm/driver.c b/drivers/block/oracleasm/driver.c
--- a/drivers/block/oracleasm/driver.c 2021-09-16 15:02:49.804973075 -0700
+++ b/drivers/block/oracleasm/driver.c 2021-09-16 15:08:56.279788832 -0700
@@ -1788,6 +1788,9 @@ static int asm_fill_timeout(struct times
struct timespec64 __user *ut = (struct timespec64 __user *)timeout;
#if (BITS_PER_LONG == 64) && defined(CONFIG_COMPAT)
+#ifndef compat_timespec
+#define compat_timespec old_timespec32
+#endif
struct compat_timespec __user *cut =
(struct compat_timespec __user *)timeout;