Commit 0bcf1924 authored by Tom Rini's avatar Tom Rini Committed by Linus Torvalds

[PATCH] Remove <linux/mm.h> from <linux/vmalloc.h>

This removes <linux/mm.h> from <linux/vmalloc.h>.

This then goes and fixes all of the files (x86 and PPC) which relied on
implicit includes which don't happen anymore.  This also takes
<linux/kdev_t.h> out of fs/mpage.c and puts it into include/linux/bio.h
where it belongs since <linux/bio.h> references 'kdev_t' directly.

A quick summary of the of the added includes:
arch/i386/kernel/microcode.c: needs extern for num_physpages, in linux/mm.h
include/linux/spinlock.h: local_irq* is defined in <asm/system.h> but
this was never directly included.
parent 3f77edfe
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/devfs_fs_kernel.h> #include <linux/devfs_fs_kernel.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/mm.h>
#include <asm/msr.h> #include <asm/msr.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kdev_t.h>
#include <linux/bio.h> #include <linux/bio.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <linux/config.h> #include <linux/config.h>
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/mm.h> /* for struct page */
/* Can be used to override the logic in pci_scan_bus for skipping /* Can be used to override the logic in pci_scan_bus for skipping
already-configured bus numbers - to be used for buggy BIOSes already-configured bus numbers - to be used for buggy BIOSes
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/fixmap.h> #include <asm/fixmap.h>
#include <linux/threads.h> #include <linux/threads.h>
#include <linux/mm.h> /* for struct page */
#define pmd_populate_kernel(mm, pmd, pte) \ #define pmd_populate_kernel(mm, pmd, pte) \
set_pmd(pmd, __pmd(_PAGE_TABLE + __pa(pte))) set_pmd(pmd, __pmd(_PAGE_TABLE + __pa(pte)))
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#ifndef __LINUX_BIO_H #ifndef __LINUX_BIO_H
#define __LINUX_BIO_H #define __LINUX_BIO_H
#include <linux/kdev_t.h>
/* Platforms may set this to teach the BIO layer about IOMMU hardware. */ /* Platforms may set this to teach the BIO layer about IOMMU hardware. */
#include <asm/io.h> #include <asm/io.h>
#ifndef BIO_VMERGE_BOUNDARY #ifndef BIO_VMERGE_BOUNDARY
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
#include <linux/thread_info.h> #include <linux/thread_info.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/system.h>
/* /*
* These are the generic versions of the spinlocks and read-write * These are the generic versions of the spinlocks and read-write
* locks.. * locks..
......
#ifndef __LINUX_VMALLOC_H #ifndef __LINUX_VMALLOC_H
#define __LINUX_VMALLOC_H #define __LINUX_VMALLOC_H
#include <linux/mm.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <asm/pgtable.h> #include <asm/pgtable.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment