From: Deepa Dinamani <deepa.kernel@gmail.com>
To: tglx@linutronix.de, linux-kernel@vger.kernel.org
Cc: arnd@arndb.de, y2038@lists.linaro.org, catalin.marinas@arm.com
Subject: [PATCH 1/6] arm64: Make basic compat_* types always available
Date: Mon, 2 Jul 2018 22:44:17 -0700 [thread overview]
Message-ID: <20180703054422.12089-2-deepa.kernel@gmail.com> (raw)
In-Reply-To: <20180703054422.12089-1-deepa.kernel@gmail.com>
As we repurpose more compat syscalls to be used in non CONFIG_COMPAT
usecases as part of solving y2038, we need to make these basic types
available unconditionally.
Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: catalin.marinas@arm.com
---
arch/arm64/include/asm/compat.h | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h
index 1a037b94eba1..2dbb179b5dc4 100644
--- a/arch/arm64/include/asm/compat.h
+++ b/arch/arm64/include/asm/compat.h
@@ -16,21 +16,14 @@
#ifndef __ASM_COMPAT_H
#define __ASM_COMPAT_H
#ifdef __KERNEL__
-#ifdef CONFIG_COMPAT
-/*
- * Architecture specific compatibility types
- */
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/sched/task_stack.h>
-#define COMPAT_USER_HZ 100
-#ifdef __AARCH64EB__
-#define COMPAT_UTS_MACHINE "armv8b\0\0"
-#else
-#define COMPAT_UTS_MACHINE "armv8l\0\0"
-#endif
+/*
+ * Architecture specific compatibility types
+ */
typedef u32 compat_size_t;
typedef s32 compat_ssize_t;
@@ -65,6 +58,15 @@ typedef u32 compat_ulong_t;
typedef u64 compat_u64;
typedef u32 compat_uptr_t;
+#ifdef CONFIG_COMPAT
+
+#define COMPAT_USER_HZ 100
+#ifdef __AARCH64EB__
+#define COMPAT_UTS_MACHINE "armv8b\0\0"
+#else
+#define COMPAT_UTS_MACHINE "armv8l\0\0"
+#endif
+
struct compat_stat {
#ifdef __AARCH64EB__
short st_dev;
--
2.17.1
next prev parent reply other threads:[~2018-07-03 5:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 5:44 [PATCH 0/6] Introduce struct __kernel_timex Deepa Dinamani
2018-07-03 5:44 ` Deepa Dinamani [this message]
2018-07-03 5:44 ` [PATCH 2/6] sparc: Make thread_info.h available directly Deepa Dinamani
2018-07-03 9:16 ` David Miller
2018-07-03 5:44 ` [PATCH 3/6] timex: prepare compat helpers for y2038 changes Deepa Dinamani
2018-07-05 7:06 ` kbuild test robot
2018-07-05 20:06 ` Deepa Dinamani
2018-07-05 20:33 ` Thomas Gleixner
2018-07-05 21:45 ` Deepa Dinamani
2018-07-06 0:41 ` [kbuild-all] " Philip Li
2018-07-03 5:44 ` [PATCH 4/6] time: Add struct __kernel_timex Deepa Dinamani
2018-07-03 5:44 ` [PATCH 5/6] timex: use __kernel_timex internally Deepa Dinamani
2018-07-03 5:44 ` [PATCH 6/6] timex: change syscalls to use struct __kernel_timex Deepa Dinamani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180703054422.12089-2-deepa.kernel@gmail.com \
--to=deepa.kernel@gmail.com \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=y2038@lists.linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox