mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@sgi.com>
To: akpm@osdl.org
Cc: Nick Piggin <nickpiggin@yahoo.com.au>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	Christoph Lameter <clameter@sgi.com>,
	linux-kernel@vger.kernel.org
Subject: [ZVC 3/4] Include vmstat.h in mm.h and not in page-flags.h
Date: Tue, 27 Jun 2006 10:46:01 -0700 (PDT)	[thread overview]
Message-ID: <20060627174601.11172.18432.sendpatchset@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <20060627174551.11172.49700.sendpatchset@schroedinger.engr.sgi.com>

Move include of vmstat.h into mm.h

Some inline functions in vmstat.h need inline definitions from mm.h

So do the same as we already to for page-flags: Include vmstat.h in
mm.h where it fits in.

Signed-off-by: Christoph Lameter <clameter@sgi.com>

Index: linux-2.6.17-mm3/include/linux/mm.h
===================================================================
--- linux-2.6.17-mm3.orig/include/linux/mm.h	2006-06-27 09:40:23.405892736 -0700
+++ linux-2.6.17-mm3/include/linux/mm.h	2006-06-27 10:29:56.424844789 -0700
@@ -4,7 +4,6 @@
 #include <linux/sched.h>
 #include <linux/errno.h>
 #include <linux/capability.h>
-#include <linux/vmstat.h>
 
 #ifdef __KERNEL__
 
@@ -524,6 +523,11 @@ static inline void set_page_links(struct
 	set_page_section(page, pfn_to_section_nr(pfn));
 }
 
+/*
+ * Some inline functions in vmstat.h depend on page_zone()
+ */
+#include <linux/vmstat.h>
+
 #ifndef CONFIG_DISCONTIGMEM
 /* The array of struct pages - for discontigmem use pgdat->lmem_map */
 extern struct page *mem_map;
Index: linux-2.6.17-mm3/include/linux/page-flags.h
===================================================================
--- linux-2.6.17-mm3.orig/include/linux/page-flags.h	2006-06-27 09:40:23.561156562 -0700
+++ linux-2.6.17-mm3/include/linux/page-flags.h	2006-06-27 10:27:36.956934646 -0700
@@ -6,7 +6,6 @@
 #define PAGE_FLAGS_H
 
 #include <linux/types.h>
-#include <linux/vmstat.h>
 
 /*
  * Various page->flags bits:

  parent reply	other threads:[~2006-06-27 17:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-27 17:45 [ZVC 1/4] Fix potential use of out of range page in kmem_getpages Christoph Lameter
2006-06-27 17:45 ` [ZVC 2/4] highmem.c: Use page after it may have been freed Christoph Lameter
2006-06-27 17:46 ` Christoph Lameter [this message]
2006-06-27 17:46 ` [ZVC 4/4] Inline counters for single processor configurations Christoph Lameter
2006-06-27 18:05   ` Christoph Lameter

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=20060627174601.11172.18432.sendpatchset@schroedinger.engr.sgi.com \
    --to=clameter@sgi.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nickpiggin@yahoo.com.au \
    --cc=penberg@cs.helsinki.fi \
    /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®