From: stefani@seibold.net
To: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de,
mingo@redhat.com, hpa@zytor.com, ak@linux.intel.com,
aarcange@redhat.com, john.stultz@linaro.org, luto@amacapital.net,
xemul@parallels.com, gorcunov@openvz.org,
andriy.shevchenko@linux.intel.com
Cc: stefani@seibold.net
Subject: [PATCH 5/6] Cleanup header files to build a proper 32 bit VDSO
Date: Tue, 18 Dec 2012 10:40:55 +0100 [thread overview]
Message-ID: <1355823656-13902-6-git-send-email-stefani@seibold.net> (raw)
In-Reply-To: <1355823656-13902-1-git-send-email-stefani@seibold.net>
From: Stefani Seibold <stefani@seibold.net>
To build a proper VDSO for 64 bit and 32 bit from the same source, some
header cleanup is necessary, otherwise a "gcc -m32" will produce a lot
of errors and warnings due the differents with LP64 and LP32.
Signed-off-by: Stefani Seibold <stefani@seibold.net>
---
arch/x86/mm/init_32.c | 1 +
include/linux/clocksource.h | 1 -
include/linux/time.h | 3 +--
include/linux/timekeeper_internal.h | 1 +
include/linux/types.h | 2 ++
5 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 11a5800..394e563 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -52,6 +52,7 @@
#include <asm/cacheflush.h>
#include <asm/page_types.h>
#include <asm/init.h>
+#include <asm/numa_32.h>
unsigned long highstart_pfn, highend_pfn;
diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h
index 4dceaf8..84ed093 100644
--- a/include/linux/clocksource.h
+++ b/include/linux/clocksource.h
@@ -19,7 +19,6 @@
#include <asm/io.h>
/* clocksource cycle base type */
-typedef u64 cycle_t;
struct clocksource;
#ifdef CONFIG_ARCH_CLOCKSOURCE_DATA
diff --git a/include/linux/time.h b/include/linux/time.h
index 4d358e9..edfab8a 100644
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -2,9 +2,8 @@
#define _LINUX_TIME_H
# include <linux/cache.h>
-# include <linux/seqlock.h>
# include <linux/math64.h>
-#include <uapi/linux/time.h>
+# include <uapi/linux/time.h>
extern struct timezone sys_tz;
diff --git a/include/linux/timekeeper_internal.h b/include/linux/timekeeper_internal.h
index e1d558e..9a55a0c 100644
--- a/include/linux/timekeeper_internal.h
+++ b/include/linux/timekeeper_internal.h
@@ -9,6 +9,7 @@
#include <linux/clocksource.h>
#include <linux/jiffies.h>
#include <linux/time.h>
+#include <linux/seqlock.h>
/* Structure holding internal timekeeping values. */
struct timekeeper {
diff --git a/include/linux/types.h b/include/linux/types.h
index 1cc0e4b..3ff59cf 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -74,6 +74,8 @@ typedef __kernel_time_t time_t;
typedef __kernel_clock_t clock_t;
#endif
+typedef u64 cycle_t;
+
#ifndef _CADDR_T
#define _CADDR_T
typedef __kernel_caddr_t caddr_t;
--
1.8.0
next prev parent reply other threads:[~2012-12-18 9:42 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 9:40 [PATCH 0/6] Add 32 bit VDSO time function support stefani
2012-12-18 9:40 ` [PATCH 1/6] Move out seqcount from seqlock.h stefani
2012-12-18 9:40 ` [PATCH 2/6] Make vsyscall_gtod_data handling x86 generic stefani
2012-12-18 9:40 ` [PATCH 3/6] Make vsyscall_gtod_data compatible with 32 bit VDSO stefani
2012-12-18 9:40 ` [PATCH 4/6] Add new base function _install_special_mapping() to mmap.c stefani
2012-12-18 9:40 ` stefani [this message]
2012-12-18 9:40 ` [PATCH 6/6] Add 32 bit VDSO support for 32 and 64 bit kernels stefani
2012-12-18 16:17 ` H. Peter Anvin
2012-12-18 16:52 ` Stefani Seibold
2012-12-18 18:44 ` H. Peter Anvin
2012-12-18 20:32 ` Stefani Seibold
2012-12-18 20:37 ` Andy Lutomirski
2012-12-18 22:24 ` H. Peter Anvin
2012-12-20 7:41 ` Stefani Seibold
2012-12-20 16:17 ` H. Peter Anvin
2012-12-20 17:53 ` Stefani Seibold
2012-12-20 18:21 ` H. Peter Anvin
2012-12-20 18:23 ` H.J. Lu
2012-12-20 18:35 ` Roland McGrath
2012-12-20 18:40 ` H. Peter Anvin
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=1355823656-13902-6-git-send-email-stefani@seibold.net \
--to=stefani@seibold.net \
--cc=aarcange@redhat.com \
--cc=ak@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=gorcunov@openvz.org \
--cc=hpa@zytor.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=xemul@parallels.com \
/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
all inboxes | Powered by JetHome®