From 64bb92dab0e34c1291eaf48abfbcb707d956cd99 Mon Sep 17 00:00:00 2001 From: Dave Hansen <haveblue@us.ibm.com> Date: Thu, 26 Aug 2004 20:35:51 -0700 Subject: [PATCH] [PATCH] include asm/page.h for virt_to_page() asm/page.h seems to be the accepted place to declare virt_to_page() on a vast majority of architectures. This patch makes sure that a few files which use that function also directly include the header. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> --- fs/binfmt_elf.c | 1 + fs/jbd/journal.c | 1 + include/asm-ppc64/pgalloc.h | 1 + mm/slab.c | 1 + net/packet/af_packet.c | 1 + 5 files changed, 5 insertions(+) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index b7c6e3917afe..717da940fbfa 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -40,6 +40,7 @@ #include <asm/uaccess.h> #include <asm/param.h> +#include <asm/page.h> #include <linux/elf.h> diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 1cf23ff17c4a..33fd505cfe21 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c @@ -34,6 +34,7 @@ #include <linux/suspend.h> #include <linux/pagemap.h> #include <asm/uaccess.h> +#include <asm/page.h> #include <linux/proc_fs.h> EXPORT_SYMBOL(journal_start); diff --git a/include/asm-ppc64/pgalloc.h b/include/asm-ppc64/pgalloc.h index 8b79f36267a2..dd717c2bb644 100644 --- a/include/asm-ppc64/pgalloc.h +++ b/include/asm-ppc64/pgalloc.h @@ -7,6 +7,7 @@ #include <linux/percpu.h> #include <asm/processor.h> #include <asm/tlb.h> +#include <asm/page.h> extern kmem_cache_t *zero_cache; diff --git a/mm/slab.c b/mm/slab.c index 887bec4dde63..429451587048 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -96,6 +96,7 @@ #include <asm/uaccess.h> #include <asm/cacheflush.h> #include <asm/tlbflush.h> +#include <asm/page.h> /* * DEBUG - 1 for kmem_cache_create() to honour; SLAB_DEBUG_INITIAL, diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 93ac3b310ceb..c2d286db5820 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -65,6 +65,7 @@ #include <asm/system.h> #include <asm/uaccess.h> #include <asm/ioctls.h> +#include <asm/page.h> #include <linux/proc_fs.h> #include <linux/seq_file.h> #include <linux/poll.h> -- 2.30.9