virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Glauber de Oliveira Costa <gcosta@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: lguest@ozlabs.org, virtualization@lists.linux-foundation.org,
	chrisw@sous-sol.org, anthony@codemonkey.ws,
	akpm@linux-foundation.org,
	Glauber de Oliveira Costa <gcosta@redhat.com>,
	mingo@elte.hu
Subject: [PATCH 1/25] [PATCH] header file move
Date: Wed,  8 Aug 2007 01:18:48 -0300	[thread overview]
Message-ID: <11865467592921-git-send-email-gcosta@redhat.com> (raw)
In-Reply-To: <11865467522495-git-send-email-gcosta@redhat.com>

Later on, the paravirt_ops patch will deference the vm_area_struct
in asm/pgtable.h. It means this define must be after the struct
definition

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
 include/linux/mm.h |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 655094d..c3f8561 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -35,11 +35,6 @@ extern int sysctl_legacy_va_layout;
 #define sysctl_legacy_va_layout 0
 #endif
 
-#include <asm/page.h>
-#include <asm/pgtable.h>
-#include <asm/processor.h>
-
-#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
 
 /*
  * Linux kernel virtual memory manager primitives.
@@ -113,6 +108,15 @@ struct vm_area_struct {
 #endif
 };
 
+#include <asm/page.h>
+/*
+ * pgtable.h must be included after the definition of vm_area_struct.
+ * x86_64 pgtable.h is one of the dereferencers of this struct
+ */
+#include <asm/pgtable.h>
+#include <asm/processor.h>
+
+#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
 extern struct kmem_cache *vm_area_cachep;
 
 /*
-- 
1.4.4.2

  reply	other threads:[~2007-08-08  4:18 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08  4:18 Introducing paravirt_ops for x86_64 Glauber de Oliveira Costa
2007-08-08  4:18 ` Glauber de Oliveira Costa [this message]
2007-08-08  4:18   ` [PATCH 2/25] [PATCH] tlb flushing routines Glauber de Oliveira Costa
     [not found]   ` <1186546763582-git-send-email-gcosta@redhat.com>
2007-08-08  4:18     ` [PATCH 3/25] [PATCH] irq_flags / halt routines Glauber de Oliveira Costa
     [not found]     ` <11865467662182-git-send-email-gcosta@redhat.com>
2007-08-08  4:18       ` [PATCH 4/25] [PATCH] Add debugreg/load_rsp native hooks Glauber de Oliveira Costa
2007-08-08  9:14       ` [PATCH 3/25] [PATCH] irq_flags / halt routines Andi Kleen
     [not found]       ` <11865467702103-git-send-email-gcosta@redhat.com>
2007-08-08  4:18         ` [PATCH 5/25] [PATCH] native versions for system.h functions Glauber de Oliveira Costa
     [not found]         ` <11865467741753-git-send-email-gcosta@redhat.com>
2007-08-08  4:18           ` [PATCH 6/25] [PATCH] add native_apic read and write functions, as well as boot clocks ones Glauber de Oliveira Costa
     [not found]           ` <11865467773012-git-send-email-gcosta@redhat.com>
2007-08-08  4:18             ` [PATCH 7/25] [PATCH] interrupt related native paravirt functions Glauber de Oliveira Costa
     [not found]             ` <11865467812610-git-send-email-gcosta@redhat.com>
2007-08-08  4:18               ` [PATCH 8/25] [PATCH] use macro for sti/cli in spinlock definitions Glauber de Oliveira Costa
     [not found]               ` <1186546785346-git-send-email-gcosta@redhat.com>
2007-08-08  4:18                 ` [PATCH 9/25] [PATCH] report ring kernel is running without paravirt Glauber de Oliveira Costa
     [not found]                 ` <1186546789356-git-send-email-gcosta@redhat.com>
2007-08-08  4:18                   ` [PATCH 10/25] [PATCH] export math_state_restore Glauber de Oliveira Costa
     [not found]                   ` <11865467931543-git-send-email-gcosta@redhat.com>
2007-08-08  4:18                     ` [PATCH 11/25] [PATCH] introduce paravirt_release_pgd() Glauber de Oliveira Costa
     [not found]                     ` <11865467973510-git-send-email-gcosta@redhat.com>
2007-08-08  4:18                       ` [PATCH 12/25] [PATCH] native versions for set pagetables Glauber de Oliveira Costa
     [not found]                       ` <11865468003673-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                         ` [PATCH 13/25] [PATCH] turn msr.h functions into native versions Glauber de Oliveira Costa
     [not found]                         ` <11865468043920-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                           ` [PATCH 14/25] [PATCH] add native functions for descriptors handling Glauber de Oliveira Costa
     [not found]                           ` <118654680831-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                             ` [PATCH 15/25] [PATCH] get rid of inline asm for load_cr3 Glauber de Oliveira Costa
     [not found]                             ` <11865468122642-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                               ` [PATCH 16/25] [PATCH] introducing paravirt_activate_mm Glauber de Oliveira Costa
     [not found]                               ` <11865468162812-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                 ` [PATCH 17/25] [PATCH] turn page operations into native versions Glauber de Oliveira Costa
     [not found]                                 ` <1186546820708-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                   ` [PATCH 18/25] [PATCH] turn priviled operations into macros in entry.S Glauber de Oliveira Costa
     [not found]                                   ` <11865468243612-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                     ` [PATCH 19/25] [PATCH] time-related functions paravirt provisions Glauber de Oliveira Costa
     [not found]                                     ` <11865468281860-git-send-email-gc! osta@redhat.com>
     [not found]                                       ` <11865468281860-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                         ` [PATCH 20/25] [PATCH] replace syscall_init Glauber de Oliveira Costa
     [not found]                                       ` <11865468321629-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                         ` [PATCH 21/25] [PATCH] export cpu_gdt_descr Glauber de Oliveira Costa
     [not found]                                         ` <11865468362401-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                           ` [PATCH 22/25] [PATCH] turn priviled operation into a macro Glauber de Oliveira Costa
     [not found]                                           ` <11865468394005-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                             ` [PATCH 23/25] [PATCH] paravirt hooks for arch initialization Glauber de Oliveira Costa
     [not found]                                             ` <11865468431616-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                               ` [PATCH 24/25] [PATCH] provide paravirt patching function Glauber de Oliveira Costa
     [not found]                                               ` <1186546847263-git-send-email-gcosta@redhat.com>
2007-08-08  4:19                                                 ` [PATCH 25/25] [PATCH] add paravirtualization support for x86_64 Glauber de Oliveira Costa
     [not found]                                                 ` <11865468513077-git-send-email-gcosta@redhat.com>
2007-08-08 10:00                                                   ` Andi Kleen
2007-08-09  6:35                                                   ` Jeremy Fitzhardinge
     [not found]                                                   ` <200708081200.13669.ak@suse.de>
2007-08-08 11:58                                                     ` Steven Rostedt
2007-08-08 14:49                                                     ` Glauber de Oliveira Costa
     [not found]                                                     ` <5d6222a80708080749t35c5c0ceo8b3b8f0cce50c666@mail.gmail.com>
2007-08-08 23:18                                                       ` Rusty Russell
     [not found]                                                       ` <1186615137.17470.100.camel@localhost.localdomain>
2007-08-09  0:24                                                         ` Andi Kleen
     [not found]                                                         ` <200708090224.16328.ak@suse.de>
2007-08-09  0:44                                                           ` Rusty Russell
     [not found]                                                           ` <1186620295.17752.23.camel@localhost.localdomain>
2007-08-09  5:38                                                             ` Jeremy Fitzhardinge
2007-08-09  6:53                                                     ` Jeremy Fitzhardinge
     [not found]                                                     ` <46BAB9DD.5030400@goop.org>
2007-08-09 14:26                                                       ` Andi Kleen
     [not found]                                                       ` <200708091626.09316.ak@suse.de>
2007-08-09 14:37                                                         ` Steven Rostedt
     [not found]                                                         ` <Pine.LNX.4.58.0708091032300.32067@gandalf.stny.rr.com>
2007-08-09 15:09                                                           ` Jeremy Fitzhardinge
     [not found]                                                   ` <46BAB5C8.5090906@goop.org>
2007-08-09  7:02                                                     ` Glauber de Oliveira Costa
     [not found]                                                     ` <5d6222a80708090002y7fdc6f2dw1dbacd3d27a86433@mail.gmail.com>
2007-08-09  7:02                                                       ` Jeremy Fitzhardinge
     [not found]                                                       ` <46BABC0F.5070002@goop.org>
2007-08-09  7:07                                                         ` Glauber de Oliveira Costa
     [not found]                                                         ` <5d6222a80708090007h3d185ecdm3ea8fa0b5ee96050@mail.gmail.com>
2007-08-09  7:12                                                           ` Jeremy Fitzhardinge
     [not found]                                                           ` <46BABE72.90107@goop.org>
2007-08-09 12:30                                                             ` Steven Rostedt
2007-08-09 14:26                                                             ` Andi Kleen
2007-08-08  9:44                                               ` [PATCH 23/25] [PATCH] paravirt hooks for arch initialization Andi Kleen
     [not found]                                               ` <200708081144.04119.ak@suse.de>
2007-08-08 14:08                                                 ` Glauber de Oliveira Costa
     [not found]                                                 ` <5d6222a80708080708h43b1521cp734bedd27f94723e@mail.gmail.com>
2007-08-08 14:13                                                   ` Andi Kleen
2007-08-09 17:43                                                 ` Jeremy Fitzhardinge
     [not found]                                                 ` <46BB5258.8040609@goop.org>
2007-08-09 18:03                                                   ` Alan Cox
2007-08-10 18:08                                                     ` Glauber de Oliveira Costa
     [not found]                                                     ` <5d6222a80708101108y62ebfa26n9f47bfc52b48f4a8@mail.gmail.com>
2007-08-10 18:25                                                       ` Alan Cox
2007-08-10 18:51                                                       ` Jeremy Fitzhardinge
     [not found]                                                       ` <46BCB3A5.8090504@goop.org>
2007-08-10 19:17                                                         ` Glauber de Oliveira Costa
2007-08-10 20:01                                                           ` Jeremy Fitzhardinge
     [not found]                                                           ` <46BCC414.7060504@goop.org>
2007-08-10 20:13                                                             ` Glauber de Oliveira Costa
     [not found]                                                             ` <46BCC6DF.2040301@redhat.com>
2007-08-10 20:30                                                               ` Jeremy Fitzhardinge
2007-08-08 11:32                                           ` [PATCH 21/25] [PATCH] export cpu_gdt_descr Arjan van de Ven
     [not found]                                           ` <1186572745.2862.5.camel@laptopd505.fenrus.org>
2007-08-08 14:24                                             ` Glauber de Oliveira Costa
2007-08-08  9:38                                     ` [PATCH 18/25] [PATCH] turn priviled operations into macros in entry.S Andi Kleen
     [not found]                                     ` <200708081138.23018.ak@suse.de>
2007-08-08 11:52                                       ` Steven Rostedt
2007-08-08 13:58                                       ` Glauber de Oliveira Costa
     [not found]                                       ` <Pine.LNX.4.58.0708080740490.5921@gandalf.stny.rr.com>
2007-08-08 12:24                                         ` Andi Kleen
     [not found]                                         ` <200708081424.49896.ak@suse.de>
2007-08-08 12:37                                           ` Steven Rostedt
     [not found]                                           ` <Pine.LNX.4.58.0708080835350.6751@gandalf.stny.rr.com>
     [not found]                                             ` <p738x8mrv4m.fsf@bingen.suse.de>
2007-08-08 13:23                                               ` Steven Rostedt
     [not found]                                               ` <Pine.LNX.4.58.0708080919330.7236@gandalf.stny.rr.com>
2007-08-08 13:26                                                 ` Steven Rostedt
2007-08-08 13:29                                                 ` Andi Kleen
     [not found]                                                 ` <Pine.LNX.4.58.0708080924590.7236@gandalf.stny.rr.com>
2007-08-08 13:30                                                   ` Andi Kleen
     [not found]                                                   ` <20070808133001.GD14419@one.firstfloor.org>
2007-08-08 13:47                                                     ` Steven Rostedt
     [not found]                                                     ` <Pine.LNX.4.58.0708080936070.7516@gandalf.stny.rr.com>
2007-08-08 14:03                                                       ` Andi Kleen
     [not found]                                                       ` <20070808140319.GF14419@one.firstfloor.org>
2007-08-08 17:07                                                         ` Steven Rostedt
2007-08-09  5:21                                                       ` Jeremy Fitzhardinge
     [not found]                                                       ` <46BAA447.9010504@goop.org>
2007-08-09 12:17                                                         ` Steven Rostedt
     [not found]                                                 ` <20070808132926.GC14419@one.firstfloor.org>
2007-08-08 14:01                                                   ` Steven Rostedt
2007-08-08 13:52                                             ` Andi Kleen
2007-08-08 14:00                                         ` Glauber de Oliveira Costa
     [not found]                                       ` <5d6222a80708080658j780667c4o52e924f8690f2a85@mail.gmail.com>
2007-08-08 14:11                                         ` Andi Kleen
     [not found]                                         ` <200708081611.25152.ak@suse.de>
2007-08-08 14:53                                           ` Glauber de Oliveira Costa
2007-08-08  9:25                           ` [PATCH 13/25] [PATCH] turn msr.h functions into native versions Andi Kleen
     [not found]                           ` <200708081125.38481.ak@suse.de>
2007-08-08 14:19                             ` Glauber de Oliveira Costa
     [not found]                             ` <5d6222a80708080719k2e2723mdf82572624856246@mail.gmail.com>
2007-08-08 14:23                               ` Andi Kleen
2007-08-09  5:52               ` [PATCH 7/25] [PATCH] interrupt related native paravirt functions Jeremy Fitzhardinge
2007-08-08  7:29           ` [PATCH 5/25] [PATCH] native versions for system.h functions Glauber de Oliveira Costa
2007-08-08  9:16         ` [PATCH 4/25] [PATCH] Add debugreg/load_rsp native hooks Andi Kleen
     [not found]         ` <200708081116.43237.ak@suse.de>
2007-08-09  5:47           ` Jeremy Fitzhardinge
2007-08-09  5:49           ` Glauber de Oliveira Costa
     [not found]       ` <200708081114.21260.ak@suse.de>
2007-08-08 14:10         ` [PATCH 3/25] [PATCH] irq_flags / halt routines Glauber de Oliveira Costa
     [not found]         ` <5d6222a80708080710n296f6da8i1dc08d914baeb27a@mail.gmail.com>
2007-08-08 14:14           ` Andi Kleen
     [not found]           ` <200708081614.52391.ak@suse.de>
2007-08-08 14:23             ` Glauber de Oliveira Costa
2007-08-09  7:29         ` Glauber de Oliveira Costa
2007-08-08 14:53 ` Introducing paravirt_ops for x86_64 Nakajima, Jun
     [not found] ` <97D612E30E1F88419025B06CB4CF1BE10326E129@scsmsx412.amr.corp.intel.com>
2007-08-08 14:58   ` Glauber de Oliveira Costa
     [not found]   ` <5d6222a80708080758t1b937d0ej14c5e60ac23a20c5@mail.gmail.com>
2007-08-09  0:28     ` Nakajima, Jun
     [not found]     ` <97D612E30E1F88419025B06CB4CF1BE10326E924@scsmsx412.amr.corp.intel.com>
2007-08-09  0:31       ` Glauber de Oliveira Costa
2007-08-09  5:35     ` Jeremy Fitzhardinge
     [not found]     ` <46BAA799.7080806@goop.org>
2007-08-09 12:46       ` [Lguest] " Steven Rostedt

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=11865467592921-git-send-email-gcosta@redhat.com \
    --to=gcosta@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=anthony@codemonkey.ws \
    --cc=chrisw@sous-sol.org \
    --cc=lguest@ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=virtualization@lists.linux-foundation.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;
as well as URLs for NNTP newsgroup(s).